Solved

ToolTips on  Popup Menus

Posted on 1998-01-08
2
575 Views
Last Modified: 2013-11-20
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?
0
Comment
Question by:traott
2 Comments
 
LVL 7

Accepted Solution

by:
galkin earned 100 total points
Comment Utility
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
 

Expert Comment

by:allanephillips
Comment Utility
I would like to see what the code looks like in this OnMenuSelect() method.
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now