how to create an icon for system tray?

i used this website to get some code for a basic windows service application
http://code.msdn.microsoft.com/windowsdesktop/CppWindowsService-cacf4948

and i now i want to create an icon for this service so that i can start/stop the service from the toolbar instead of going into the SCM every time.

i found some code to create an icon but my problem is i don't know where in the service code to put the icon code (if you look at the link you can see the program has 4 files)

i don't want to create a separate program to control the icon
Last edited on
To answer your title question; you can create icons in image manipulation programs. A nice feature of GIMP is that you can get pixel data as C source code, and insert it into your program.

Other than that, icons are OS-specific (you'd best ask it under Windows programming), you could use a library like SFML or wxWidgets (I think, currently learning wxW.) as a platform-independent layer for your icon.
i don't really care about design of the icon. its the code i'm asking about.
i want to create an icon for this service so that i can start/stop the service from the toolbar instead of going into the SCM every time.


Topic archived. No new replies allowed.