Go4Expert

Go4Expert (http://www.go4expert.com/)
-   MFC (http://www.go4expert.com/articles/mfc-tutorials/)
-   -   Display a System Tray Icon in VC++ (http://www.go4expert.com/articles/display-tray-icon-vcpp-t343/)

MunkeN 26May2009 16:23

Re: Display a System Tray Icon in VC++
 
Hi all.
I've used to sample, and it works like a charm - though I wonder how it's possible to make the menu dissappear if I leftclick outside of it?
It's enabled until I choose an item in the menu.

MunkeN 29May2009 13:05

Re: Display a System Tray Icon in VC++
 
Quote:

Originally Posted by MunkeN (Post 48446)
Hi all.
I've used to sample, and it works like a charm - though I wonder how it's possible to make the menu dissappear if I leftclick outside of it?
It's enabled until I choose an item in the menu.

Oh, I forgot to mention - I've already fixed it by calling "SetForegroundWindow()" just before TrackPopupMenu(). :)


All times are GMT +5.5. The time now is 12:24.