Menu Command Routing

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 ?
rafeekAsked:
Who is Participating?
 
migelConnect With a Mentor Commented:
Hi
Set correct window when calling TrackPopupmenu. commands will be routed to the window you specify here.
0
 
rafeekAuthor Commented:
If you know the solution please mail me immedieatly. Thanks.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.