03-27-2009, 08:34 AM
The code below gets the visible text of toolbar buttons, but how to get tooltip text from buttons?
Toolbar
Toolbar
,,,int i n=SendMessage(id(9999 hWnd) TB_BUTTONCOUNT 0 0)
,,,if(!n) ret
,,,TBBUTTON* bq=share
,,,TBBUTTON* be=share(id(9999 hWnd))
,,,word* tq=bq+sizeof(TBBUTTON)
,,,word* te=be+sizeof(TBBUTTON)
,,,
,,,for i 0 n
,,,,if(!SendMessage(id(9999 hWnd) TB_GETBUTTON i be)) continue
,,,,if(SendMessage(id(9999 hWnd) TB_GETBUTTONTEXTW bq.idCommand te)<0) continue
,,,,out _s.ansi(tq)