Jump to content

TrackPopupMenu problem... please help


Recommended Posts

I would like to ask a question about mouse hooking vs TrackPopupMenu...

it doesn't seem to work when you hook the:

WM_MOUSEMOVE

WM_RBUTTONDOWN

WM_RBUTTONUP

WM_CONTEXTMENU

messages to make a new global context menu.

when I rightclick anywhere on the desktop the popup menu appears but my application receives no further messages. It only disapears when I click on my window... and I would like it to disapear when I click anywhere on the desktop...

(my app has a very small window on the corner just for testing)

my application receives all messages above when the popup menu is not active, wherever I move the mouse or wherever I click... but as soon as I display the menu all messages get stuck... please help.

Link to comment
Share on other sites


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...