Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Menu Command Routing

Posted on 2000-05-10
2
Medium Priority
?
174 Views
Last Modified: 2013-11-20
I have an ownerdrawn button (class derived from CButton). I want to pop up
a menu on the WM_LBUTTONDOWN, in this case the user would be able to select the menu item by releasing the mouse button. The problem is: when I press the mouse button down the menu pops up, but when I release the mouse button - nothing happens when i select on any item from the menu. How do i solve this problem ?
0
Comment
Question by:rafeek
[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
 

Author Comment

by:rafeek
ID: 2796618
If you know the solution please mail me immedieatly. Thanks.
0
 
LVL 12

Accepted Solution

by:
migel earned 30 total points
ID: 2799391
Hi
Set correct window when calling TrackPopupmenu. commands will be routed to the window you specify here.
0

Featured Post

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

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: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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.
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Suggested Courses

604 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