darkman0101
Technical User
I have added an icon (form) to the system tray using the Shell_NotifyIcon api. The form has a menu that I pop up if the right mouse button is pressed on the form, (which is captured with the form's MouseMove event).
If one clicks the desktop (or anywhere outside the popup menu) the menu remains visible. With other applications if one clicks outside the menu the menu closes.
How is this done? do I need to obtain the hWnd for hte meny and capture messeges sent to it and look for when it looses focus?
If one clicks the desktop (or anywhere outside the popup menu) the menu remains visible. With other applications if one clicks outside the menu the menu closes.
How is this done? do I need to obtain the hWnd for hte meny and capture messeges sent to it and look for when it looses focus?