windows - Tooltip text truncated -
i found out sometimes, text on tooltip not displayed. here's example such text:
wwwww wwww, ww wwwwwwww
wwwwwwwwww wwwwwwwwwwwww wwwwwwwww
screenshot:
my tooltip creation code (wtl):
ctooltipctrl tooltip; toolinfo toolinfo; tooltip.create(window, null, null, tts_nofade); toolinfo = ctoolinfo(ttf_idishwnd | ttf_track | ttf_absolute, tooltip, 0, null, l"www..."); tooltip.addtool(&toolinfo); tooltip.sendmessage(ttm_settitle, (wparam)hicon, (lparam)l"title");
is known issue? appreciated. thanks!
looks calling tooltip.setmaxtipwidth(maxint);
fixes it.
non-wtl version: sendmessage(..., ttm_setmaxtipwidth, 0, maxint);
Comments
Post a Comment