Is there any simple way to determine when the popup menu was dismissed?

Posted by Alex Jenter on Stack Overflow See other posts from Stack Overflow or by Alex Jenter
Published on 2010-03-17T09:15:06Z Indexed on 2010/03/17 9:51 UTC
Read the original article Hit count: 173

Filed under:
|
|
|
|

I'm displaying a popup menu using TrackPopupMenu and would like to know when it is dismissed via clicking outside of it. I've looked through all the menu functions but didn't find anything useful in this regard. Spy++ told me that no window message is sent in this case.

So, is there an easy way to do it without installing a mouse hook? Thanks!

© Stack Overflow or respective owner

Related posts about winapi

Related posts about c++