|
Prev: Is there a way to set the start point of a file which is similar as function SetEndOfFile?
Next: Creating a Software Manual
From: Cartoper on 25 Jun 2008 17:34 I have a WTL Dialog application that has a tool tips class. For some reason, despite the fact that I am setting TTM_SETMAXTIPWIDTH to a -1, I have tooltips that are getting cut off. Searching around I found in MSDN the article on "Implementing Multiline ToolTips". If I understand it correctly, to implement multiline tooltips, you have to hook the WM_NOTIFY of each control that wants to have a multiline tooltip. It seems like a bit of work! Also, what about controls that do not implement WM_NOTIFY, like the Edit Control?
From: Christian ASTOR on 25 Jun 2008 18:13 Cartoper wrote: > Also, what about controls that do not implement WM_NOTIFY, like the > Edit Control? All controls receive WM_NOTIFY.
From: Sam Hobbs on 26 Jun 2008 04:52
WM_NOTIFY is sent to parents, so hopefully it is not as much work as you have the impression it is. The WM_NOTIFY is sent to controls that did not exist in 16-bit Windows; the older controls get notifications in WM_COMMAND messages. I don't know about tooltips, but look at the WM_COMMAND message for probably equivalents for older controls such as the edit control. "Cartoper" <cartoper(a)gmail.com> wrote in message news:8876a2fa-ae46-422a-b5a7-a83f106c8aa9(a)c65g2000hsa.googlegroups.com... >I have a WTL Dialog application that has a tool tips class. For some > reason, despite the fact that I am setting TTM_SETMAXTIPWIDTH to a -1, > I have tooltips that are getting cut off. > > Searching around I found in MSDN the article on "Implementing > Multiline ToolTips". If I understand it correctly, to implement > multiline tooltips, you have to hook the WM_NOTIFY of each control > that wants to have a multiline tooltip. It seems like a bit of work! > Also, what about controls that do not implement WM_NOTIFY, like the > Edit Control? > > |