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 » Tooltip cover by floating control bar window Collapse All
Subject Author Date
Cheryao Yang Dec 16, 2007 - 11:30 PM


We are using a CExtControlBar and attach a dialog on it.
In this dialog there are several buttons and use CToolTipCtrl to show button tips.

If the control bar is docking the tool tip display correctly, but if the control bar is floating,
the tool tip would be cover up by control bar. Besides, tool tip box outside the control bar
display correctly.

Any ideas?


Technical Support Dec 18, 2007 - 3:21 AM

You should handle TTN_NEEDTEXT or TTN_SHOW notifications in the PreTranslateMessage() virtual method of your dialog class and move the tooltip control to the top using this piece of code

m_wndToolTipCtrl.SetWindowPos( &CWnd::wndTop, 0, 0, 0, 0, SWP_NOMOVE|SWP_NOSIZE|SWP_NOACTIVATE);