Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version
Go to top

Animated System Tray Icon, Taskbar Icon, and Titlebar Icon

, 14 Jul 2006
An article on animating system tray, taskbar and title bar icons.
trayicon.zip
TrayIcon
CPICKER.ICO
CPICKER1.ICO
CPICKER2.ICO
CPICKER3.ico
CPICKER4.ico
CPICKER5.ico
CPICKER6.ico
CPICKER7.ico
TrayIcon.dsp
TrayIcon.dsw
TrayIcon.exe
//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

Share

About the Author

Shanmuga Sundar.V
Architect
India India
Module Lead working in leading MNC company, india - bangalore.

| Advertise | Privacy | Mobile
Web01 | 2.8.140916.1 | Last Updated 14 Jul 2006
Article Copyright 2006 by Shanmuga Sundar.V
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid