quote:
Originally posted by V@no
I can't seem to get this working on StaticControl type controls (aka simple text).
Any suggestions?
Thank you.
Win32 Tooltips can only be attached to controls which expose a HWND. Labels don't have a HWND type property, so you can't pass it in the TOOLINFO structure to TTM_ADDTOOL.
You could cheat though, by listening to WM_MOUSEMOVE on the window and detecting when the mouse hovers the label. When this happens, you'd assign a tooltip to the window instead of the label. When the mouse goes out of the label rectangle again, you'd remove the tooltip from the window. As you may have guessed, this is considered to be a pretty nasty workaround.