Click here to Skip to main content
15,896,540 members
Articles / Programming Languages / C++

Minimize any window to system tray using Windows Hook

Rate me:
Please Sign up or sign in to vote.
4.68/5 (32 votes)
29 Oct 2003CPOL2 min read 192.1K   5.1K   76  
If there are some applications you have to run during your work, but need to minimize them to the Task Bar, make your Task Bar become "dirty". This utility will minimize them to the System Tray.
//{{NO_DEPENDENCIES}}
// Microsoft Developer Studio generated include file.
// Used by Win32 Dialog.rc
//
#define IDR_MANIFEST                    1
#define IDD_DLG_DIALOG                  102
#define IDD_ABOUTBOX                    103
#define IDM_ABOUT                       104
#define IDC_MYICON                      105
#define IDC_STEALTHDIALOG               106
#define IDI_STEALTHDLG                  107
#define IDI_ICON                        107
#define IDC_STATIC                      -1

// Next default values for new objects
// 
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NO_MFC                     1
#define _APS_NEXT_RESOURCE_VALUE        113
#define _APS_NEXT_COMMAND_VALUE         32771
#define _APS_NEXT_CONTROL_VALUE         1000
#define _APS_NEXT_SYMED_VALUE           110
#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, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Web Developer
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions