My application puts an icon on the system tray and then creates a pop-up
menu when this icon is right-clicked on (using TrackPopupMenu). The only
problem that I have is that I do not know how to detect when the user clicks
outside of this menu. Hence, the only way to make the menu go away is to
select an item from the menu. Can anyone tell me what message I should be
getting when the user clicks outside of the menu? Is the message the same
if the user clicks outside of the menu but still inside of one my
application's window versus clicking on another application or the desktop?
Thanks in advance,
Ryan Mounts
Usually, a pop-up menu created by TrackPopupMenu goes away when user clicks
outside of the menu bar or extended bar which is specified by prcRect
parameter.
No any additional actions must be done. The message is posted to the window
where
the click takes place (if mouse was not captured).
Alex Tsiberev
al...@hydro.appl.sci-nnov.ru
Ryan Mounts a écrit :
Thanks again,
Ryan Mounts
Ryan Mounts <remove_up_to...@upstanding.com> wrote in message
news:89hn3m$j...@chronicle.concentric.net...