Professional UI Solutions
Site Map   /  Register


Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion » Tooltips and picture control Collapse All
Subject Author Date
Carsten Pedersen Nov 26, 2007 - 3:18 AM

I have a dialog based on CExtResizableDialog, in which I have a Owner draw Picture Control. In this picture control I would like to enable tooltips, telling me the pixel coordinates and value.
The thing is, using neither of the notification messages show below get activated when I hover anywhere on the dialog.
    ON_NOTIFY(TTN_NEEDTEXTW, 0, OnGetTooltipText)
    ON_NOTIFY(TTN_NEEDTEXTA, 0, OnGetTooltipText)
    ON_NOTIFY_EX( TTN_NEEDTEXT, 0, OnGetTooltipText)

I have enabled tooltips in OnInitDialog, I don’t know what I’m missing. Anyone know a solution?

Best regards,


Technical Support Nov 27, 2007 - 6:06 AM

Please note that in order to display a tool tip, you should relay an event of the CToolTipCtrl object in the PreTranslateMessage function

So just make sure that you did it.