Solved

Menu Command Routing

Posted on 2000-05-10
2
147 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

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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 a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

832 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