ok does anybody know how to create multiline tooltip controls thnx p.s. 0Dh,0Ah or such things don't work !
Posted on 2000-11-17 16:03:00 by StaRik
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
Posted on 2001-03-06 04:58:00 by umbongo
first set a max width to your tooltips to enable multiline tooltips (so 0Dh,0Ah will work), like:


;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

;  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
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? :)
Posted on 2001-03-06 12:06:00 by SavaGe