ToolTips on Popup Menus

I need to display a ToolTip on a CMenu popup menu.  I can get the tip text but the CToolTipCtrl needs a parent window and the CMenu is not derived form a CWnd. I tried the MainFrame window but this forces the popup menu to disappear right after it comes up.  Any other suggestions?
traottAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
galkinConnect With a Mentor Commented:
When you selct menu item in popup menu WM_MENUSELECT message is sent to menu owner window. You can use GetCursorPos Win32 API function to get current cursor position and then WindowFromPoint to get menu temporary window handle beneith the mouse pointer. Now you can create tooltip control passing this temporary window handle as owner window, add tool and acticvate it.
0
 
allanephillipsCommented:
I would like to see what the code looks like in this OnMenuSelect() method.
0
All Courses

From novice to tech pro — start learning today.