How to add icons into Program tray menu list?

The topic also is a question.
I have no idea how to insert icons by Windows API functions...
Also I have an another question : How to (load) an icon from an executable file then draw it (Set window icon)?...
Is there any method which can get a pixel of the screen and store the color result into a DWORD value?
Last edited on
I don't know what a Program tray menu list is, but you can add icons to menu items in the basic menus that appear at the top of an application window. You have to create a MENUITEMINFO structure and use SetMenuItemInfo().
See http://msdn.microsoft.com/en-us/library/windows/desktop/ms647578%28v=vs.85%29.aspx
If you're talking about the System Tray, then this link might help?

Notifications and the Notification Area (Windows)
http://msdn.microsoft.com/en-us/library/windows/desktop/ee330740%28v=vs.85%29.aspx

Andy
Topic archived. No new replies allowed.