Try?
SendMessageA(hwndToolbar, TB_GETBUTTON, 33020, tbbutton);

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I am trying to write code to obtain the state of a toolbar button of terminal.exe.
It appears that because terminal.exe uses the MFC libraries for its controls/toolbars that I need to do something like this:
int tbbutton[10];
ArrayInitialize(tbbutton, 0);
SendMessageA(hwndToolbar, TB_GETBUTTON, 33020, tbbutton[0]);
This won't compile - I want to pass in a reference to an integer array big enough to read the structure information passed back to me.