Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Get toolbar button tooltip text
#1
The code below gets the visible text of toolbar buttons, but how to get tooltip text from buttons?

Toolbar
Code:
Copy      Help
Visible Text : out "visible"
,Tooltip Text : out "invisible"

Code:
Copy      Help
,,,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)


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)