Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

win32 pop-up menu api

3 views
Skip to first unread message

Ryan Mounts

unread,
Feb 29, 2000, 3:00:00 AM2/29/00
to
Hello,

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

Alex Tsiberev

unread,
Mar 1, 2000, 3:00:00 AM3/1/00
to

Ryan Mounts writes in a message <89hn3m$j...@chronicle.concentric.net> ...

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

Christian ASTOR

unread,
Mar 1, 2000, 3:00:00 AM3/1/00
to
There is a known problem (SetForegroundWindow())
http://support.microsoft.com/support/kb/articles/Q135/7/88.asp?LNG=ENG&SA=ALLKB&FR=0

Ryan Mounts a écrit :

Ryan Mounts

unread,
Mar 1, 2000, 3:00:00 AM3/1/00
to
Thanks to those who replied. I checked the article that Christian gave me a
link to, and much to my surprise, microsoft had a documented, simple
solution to my problem!

Thanks again,
Ryan Mounts

Ryan Mounts <remove_up_to...@upstanding.com> wrote in message
news:89hn3m$j...@chronicle.concentric.net...

0 new messages