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/)

shabbir 6Aug2007 09:31

Re: Display a System Tray Icon in VC++
 
Why don't you download the code and try running it. I see you should have the IDR_MENU and not IDR_MENU1 but I could not get what you meant by
Quote:

Originally Posted by 2MuchRiceMakesMeSick
But I cant because there is no Menu Control IDs in the wizard.


parvez.yu 6Mar2008 14:50

Re: Display a System Tray Icon in VC++
 
what is system tray icon

shabbir 6Mar2008 16:02

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

Originally Posted by parvez.yu
what is system tray icon

The Icon you see in the bottom right corner

parvez.yu 6Mar2008 16:48

Re: Display a System Tray Icon in VC++
 
oh ok thanks shabbir

torussxl 31Mar2009 08:58

Re: Display a System Tray Icon in VC++
 
I followed the instructions for the system icon, and my app is able to get one to show up...however the icon disappears as soon as the mouse hovers over it. So obviously the tooltip and the right-click menu cannot be activated.

What am I possibly doing wrong? I followed the instructions almost verbatim. I'm using Windows XP pro and Visual Studio 2005 version 8.

Thanks for any help.

shabbir 31Mar2009 14:12

Re: Display a System Tray Icon in VC++
 
Your Exe is dying and so the Icon is disappearing.

funativi 8Apr2009 18:03

Re: Display a System Tray Icon in VC++
 
I want to enable / disable menu items insystem trya. How cam I do it?

shabbir 8Apr2009 19:13

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

Originally Posted by funativi (Post 45500)
I want to enable / disable menu items insystem trya. How cam I do it?

Disabling the menu item would be same for Normal Menu or for Any Windows control. There is an API EnableWindow and I think that should do it for you

funativi 9Apr2009 09:03

Re: Display a System Tray Icon in VC++
 
I have tried it, but it does not work, I debugged the code and I found that update handler is called before oncommand.

shabbir 9Apr2009 12:17

Re: Display a System Tray Icon in VC++
 
It does work for me ?


All times are GMT +5.5. The time now is 20:57.