Click here to Skip to main content
15,886,629 members
Articles / Programming Languages / C++

Animated System Tray Icon, Taskbar Icon, and Titlebar Icon

Rate me:
Please Sign up or sign in to vote.
4.65/5 (25 votes)
14 Jul 20062 min read 91.8K   4.2K   59  
An article on animating system tray, taskbar and title bar icons.
//Microsoft Developer Studio generated resource script.
//
#include "resource.h"

#define APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 2 resource.
//
#define APSTUDIO_HIDDEN_SYMBOLS
#include "windows.h"
#undef APSTUDIO_HIDDEN_SYMBOLS
#include "resource.h"

/////////////////////////////////////////////////////////////////////////////
#undef APSTUDIO_READONLY_SYMBOLS

/////////////////////////////////////////////////////////////////////////////
// English (U.S.) resources

#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
#ifdef _WIN32
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
#pragma code_page(1252)
#endif //_WIN32

/////////////////////////////////////////////////////////////////////////////
//
// Menu
//

IDC_TRAYICON MENU DISCARDABLE 
BEGIN
    POPUP "Tray Icon"
    BEGIN
        MENUITEM "Hide Window",                 ID_TRAYICON_HIDEWINDOW
        MENUITEM "Minimize Window",             ID_TRAYICON_MINIMISE
        MENUITEM "Maximize Window",             ID_TRAYICON_MAXIMIZEWINDOW
        MENUITEM "Kill Process",                ID_FILE_KILLPROCESS
    END
END


/////////////////////////////////////////////////////////////////////////////
//
// Accelerator
//

IDC_TRAYICON ACCELERATORS MOVEABLE PURE 
BEGIN
    "?",            IDM_ABOUT,              ASCII,  ALT
    "/",            IDM_ABOUT,              ASCII,  ALT
END


#ifdef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// TEXTINCLUDE
//

2 TEXTINCLUDE DISCARDABLE 
BEGIN
    "#define APSTUDIO_HIDDEN_SYMBOLS\r\n"
    "#include ""windows.h""\r\n"
    "#undef APSTUDIO_HIDDEN_SYMBOLS\r\n"
    "#include ""resource.h""\r\n"
    "\0"
END

3 TEXTINCLUDE DISCARDABLE 
BEGIN
    "\r\n"
    "\0"
END

1 TEXTINCLUDE DISCARDABLE 
BEGIN
    "resource.h\0"
END

#endif    // APSTUDIO_INVOKED


/////////////////////////////////////////////////////////////////////////////
//
// Icon
//

// Icon with lowest ID value placed first to ensure application icon
// remains consistent on all systems.
IDI_ICON1               ICON    DISCARDABLE     "CPICKER.ICO"
IDI_ICON2               ICON    DISCARDABLE     "CPICKER1.ICO"
IDI_ICON3               ICON    DISCARDABLE     "CPICKER2.ICO"
IDI_ICON4               ICON    DISCARDABLE     "CPICKER3.ico"
IDI_ICON5               ICON    DISCARDABLE     "CPICKER4.ico"
IDI_ICON6               ICON    DISCARDABLE     "CPICKER5.ico"
IDI_ICON8               ICON    DISCARDABLE     "CPICKER6.ico"
IDI_ICON7               ICON    DISCARDABLE     "CPICKER7.ico"

/////////////////////////////////////////////////////////////////////////////
//
// String Table
//

STRINGTABLE DISCARDABLE 
BEGIN
    IDS_APP_TITLE           "Icon Animation"
    IDS_HELLO               "Animation of Tray Icon, TaskBar Icon and TitleBar Icon"
    IDC_TRAYICON            "TRAYICON"
END

#endif    // English (U.S.) resources
/////////////////////////////////////////////////////////////////////////////



#ifndef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 3 resource.
//


/////////////////////////////////////////////////////////////////////////////
#endif    // not APSTUDIO_INVOKED

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
Architect Luxoft
Germany Germany
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions