News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Tooltip

Started by ctt, July 15, 2005, 12:28:23 PM

Previous topic - Next topic

ctt

Hello everyone!

I've got a little problem with a program im doing for my work. I can't get the tooltip to work.

I've did what iczel stated in his tutorial #23 (i think) but i dont want to use the enumchildwindows api i wanna give the controls userspecified tooltips and not only the name of the control, i tried to figure out the numbering of the controls and that way give them specific text, no luck. I tried to manually add som text to the tooltip for that control but that resulted in no tooltip at all  ::)

invoke SetDlgToolArea,IDC_BUTTON,addr ti,addr TestString
   
    mov edi,lpti
    assume edi:ptr TOOLINFO
    push hDlg
    pop [edi].uId
    or [edi].lpszText,TTF_IDISHWND
    push lpText
    pop [edi].lpszText
    invoke SendMessage,hwndTool,TTM_ADDTOOL,NULL,lpti
    assume edi:nothing
    ret


I'll hope you understand?
If someone have a working snippet with adding a tooltip to a control that will do just fine.


Mark Jones

Hi, one moot point, is lpti a "logical pointer" to some kind of data? If so, you need to use ADDR lpti in the invoke line else that parameter will be invalid.
"To deny our impulses... foolish; to revel in them, chaos." MCJ 2003.08

ctt

That i do .... i think :)

SetDlgToolArea proc uses edi hDlg:DWORD,lpti:DWORD,lpText:DWORD