Posts: 1,058
Threads: 367
Joined: Oct 2007
I understand that using a statement in the form SendMessage(c TB_BUTTONCOUNT 0 0) one can enumerate the items in a toolbar. However, I experienced that if the toolbar function - qm item, has some commented lines (first character is space) these are included in the enumeration as well. I wonder whether there exists another work around. Many thanks in advance, best regards.
Posts: 12,092
Threads: 142
Joined: Dec 2002
Comments are invisible buttons.
If you get button properties with SendMessage(TB_GETBUTTON), in TBBUTTON.fsState there is flag TBSTATE_HIDDEN.
Alternative - use accessible object functions. Role of invisible buttons is different.
Posts: 1,058
Threads: 367
Joined: Oct 2007
Thank you for your advice. I have also found usefulTB_GETSTATE .
I wonder whether something is changed, but I have not received an e-mail message for your reply. Best regards.