Click here to Skip to main content
15,881,413 members
Articles / Desktop Programming / MFC

System Tray Icons - Adding to your dialog application

Rate me:
Please Sign up or sign in to vote.
4.58/5 (49 votes)
15 Apr 20021 min read 236.1K   2.7K   55  
Easy to implement system tray icon!
//{{NO_DEPENDENCIES}}
// Microsoft Developer Studio generated include file.
// Used by ashsystray.rc
//
#define IDM_ABOUTBOX                    0x0010
#define IDD_ABOUTBOX                    100
#define IDS_ABOUTBOX                    101
#define IDD_ASHSYSTRAY_DIALOG           102
#define IDR_MAINFRAME                   128
#define IDR_TRAY                        130
#define IDC_HIDEAPP                     1000
#define ID_TRAY_RESTORE                 32771

// Next default values for new objects
// 
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE        131
#define _APS_NEXT_COMMAND_VALUE         32772
#define _APS_NEXT_CONTROL_VALUE         1001
#define _APS_NEXT_SYMED_VALUE           101
#endif
#endif

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
Australia Australia
Name: Ash Rowe
From: Canberra, Australia
Qualifications: Diploma in Game Programming
Age: 19 (Getting old and feeling it)

Tutorials I have written in the past, I have done so in a fashion that would enable even the newest of programmers to get a grasp on what is actually happening with the code I submit. I am looking at writing even more in the near future to further assist others as well as gain a better understanding myself of the code I end up with.

Comments and Discussions