ok does anybody know how to create multiline tooltip controls thnx p.s. 0Dh,0Ah or such things don't work !
If I recall correctly, you can do this:- "This is a multiline\ntooltip control" the \n will cause a break in the line. Beware thatt he default tooltip can't store much text, you'll have to write your own to do more than ummm 100 chars I think. umbongo
first set a max width to your tooltips to enable multiline tooltips (so 0Dh,0Ah will work), like:
if your text exceeds the max tooltip width it will automatically wrap to the next line. or use crlf to do it manually. (a \r\n in your text will not work) easy eh? :)
.const TTM_GETMAXTIPWIDTH equ WM_USER+24 TTM_SETMAXTIPWIDTH equ WM_USER+25 .data ;use a carriage return and linefeed to break to a new line, like: szText db "This is a multiline tooltip!",13,10,"win32asm rocks!",0 .code ... ... ;TTM_SETMAXTIPWIDTH ; wParam = 0 ; lParam = max witdh of the tooltip ;add this after you created your tooltip control: invoke SendMessage,hwndTool,TTM_SETMAXTIPWIDTH,NULL,200 ;width 200 ;then add the szText or whatever with TTM_ADDTOOL as ususally