Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Windos
win32.3rdparty
win32.directx.audio
win32.directx.ddk
win32.directx.graphics
win32.directx.input
win32.directx.managed
win32.directx.misc
win32.directx.networking
win32.directx.sdk
win32.directx.video
win32.dirx.grap.shaders
win32.gdi
win32.international
win32.kernel
win32.messaging
win32.mmedia
win32.networks
win32.ole
win32.rtc
win32.tapi
win32.tapi.beta
win32.tools
win32.ui
win32.wince
win32.wmi
windows.mediacenter
winfx.aero
winfx.announcements
winfx.avalon
winfx.collaboration
winfx.fundamentals
winfx.general
winfx.indigo
winfx.sdk
winfx.winfs
  
 
date: Wed, 25 Jun 2008 14:34:38 -0700 (PDT),    group: microsoft.public.win32.programmer.ui        back       


Sizing Tooltips   
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?
date: Wed, 25 Jun 2008 14:34:38 -0700 (PDT)   author:   Cartoper

Re: Sizing Tooltips   
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"  wrote in message 
news:8876a2fa-ae46-422a-b5a7-a83f106c8aa9@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?
>
>
date: Thu, 26 Jun 2008 01:52:46 -0700   author:   Sam Hobbs _change_social_to_socal

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us