Solved

ToolTips on  Popup Menus

Posted on 1998-01-08
2
597 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 7

Accepted Solution

by:
galkin earned 100 total points
ID: 1313638
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
ID: 39035499
I would like to see what the code looks like in this OnMenuSelect() method.
0

Featured Post

Get proactive database performance tuning online

At Percona’s web store you can order full Percona Database Performance Audit in minutes. Find out the health of your database, and how to improve it. Pay online with a credit card. Improve your database performance now!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
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.
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Suggested Courses

630 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