Solved

Menu Command Routing

Posted on 2000-05-10
2
157 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
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 10 total points
ID: 2799391
Hi
Set correct window when calling TrackPopupmenu. commands will be routed to the window you specify here.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
ORA-01403: no data found 43 112
sum67 challenge 35 116
fix34  challenge 9 168
wordmultiple challenge 12 157
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
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.
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

696 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