//flex table opened by JP

Click to See Complete Forum and Search --> : My Context Menu Problem


Deamon J
05-11-2003, 11:41 AM
My application (C++) places an icon in the system tray, then, when it recieves a 'right-click' message creates a context-menu.

My problem is that the menu will only close after a selection has been made - even is the app is closed!!! In all the examples I have seen, when you click on another window, or the desktop, after opening them they close automatically...

WHAT am i doing wrong?

frnkzks
05-11-2003, 11:09 PM
You gotta have code to close the menu when the application loses focus. It's not going to close by itself.

Deamon J
05-12-2003, 04:17 PM
Well, I thought that but the parent window of my menu didn't recieve any of the normal messages (WM_CAPTURECHANGED) - which messages am i looking to recieve?