![]() |
Display a System Tray Icon in VC++
1 Attachment(s)
Create a Dialog based application and add a menu.
First you need to declare some variables in the the header file of your Dialog. Code: CPP
Code: CPP
Code: CPP
Code: CPP
Code: CPP
Code: CPP
Quote:
|
Re: Display a System Tray Icon in VC++
One more thing...
Don't forget to define #define _WIN32_WINNT 0x0501 before including "windows.h" file. |
Re: Display a System Tray Icon in VC++
Quote:
|
Re: Display a System Tray Icon in VC++
Quote:
For example : Code:
//shellapi.h[img]file:///C:/Temp/moz-screenshot-13.jpg[/img] [img]file:///C:/Temp/moz-screenshot-14.jpg[/img] [img]file:///C:/Temp/moz-screenshot-15.jpg[/img] From MSDN : Code:
Windows Server 2003 family _WIN32_WINNT>=0x0502 |
Re: Display a System Tray Icon in VC++
Hi,
i did this application in VC++6.0, but i want to display the balloon tool tips for my system tray icon, i know how to do this. when i'm working in version 6.0 its giving errors as error C2039: 'uTimeout' : is not a member of '_NOTIFYICONDATAA' error C2039: 'dwInfoFlags' : is not a member of '_NOTIFYICONDATAA' erro C2039: 'szInfo' : is not a member of '_NOTIFYICONDATAA' ..... .... but when i did the another application application for system tray icon in VC++.Net then it runs perfectly and the system tray icons shows the balloon tips. i know its due to the shellapi.h version with respective to the os. now my question is how can i made VC++6.0 use the latest version of shellapi.h and able to display the balloon tool tips in my application. please help me to solve this. Thanks in advance. -Gopinath |
Re: Display a System Tray Icon in VC++
Change the header file path in the project settings.
|
Re: Display a System Tray Icon in VC++
Can someone walk me though the part Add user-defined message handler
I am still learning VC and im familiar with the MFC ClassWizard but where do I go from there? |
Re: Display a System Tray Icon in VC++
im using VC++ 6.0 also
|
Re: Display a System Tray Icon in VC++
Quote:
|
Re: Display a System Tray Icon in VC++
Thanks. Now its saying that it cant find m_TrayMenu
I havent defined a Member Variable called m_TrayMenu is obviously why But I cant because there is no Menu Control IDs in the wizard. I did add a IDR_MENU1 by right clicking NEW MENU. Why is it not showing up under the MFC Class Wizard? Or am I doing it wrong? Thanks for the help... |
| All times are GMT +5.5. The time now is 10:39. |