Click here to Skip to main content
13,054,329 members (78,918 online)
Click here to Skip to main content


46 bookmarked
Posted 14 Dec 2003

Tray Icon Class with Icon Animation Abilities

, 14 Dec 2003
A class which makes tray icons management and animation really easy
// akTrayIconDemoDlg.h : header file

#pragma once
#include "afxwin.h"

#include "akTrayIcon\akTrayIcon.h"

// CakTrayIconDemoDlg dialog
class CakTrayIconDemoDlg : public CDialog

    CakTrayIcon m_TrayIcon;
    afx_msg LRESULT OnTrayIconNotify(WPARAM, LPARAM);

// Construction
	CakTrayIconDemoDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data

	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support

// Implementation
	HICON m_hIcon;

	// Generated message map functions
	virtual BOOL OnInitDialog();
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
    CEdit m_Tip;
    CEdit m_Info;
    CEdit m_Timeout;
    afx_msg void OnEnSetfocusEdTip();
    afx_msg void OnEnSetfocusEdInfo();
    afx_msg void OnEnSetfocusEdTimeout();
    afx_msg void OnBnClickedBtnChange();
    afx_msg void OnBnClickedBtnShow();
    afx_msg void OnBnClickedBtnAnimate();
    CEdit m_InfoTitle;
    CComboBox m_InfoType;
    CEdit m_AnimTip;
    afx_msg void OnEnSetfocusEdInfoTitle();
    afx_msg void OnCbnSetfocusCbInfoType();
    afx_msg void OnEnSetfocusEdAnimTip();

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.


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


About the Author

Alex Kolesnichenko
Software Developer (Senior)
United States United States
Started professional career in software development back in 2000, in Ukraine. Founder and owner of a boutique software company called Software. Worked for 6 years at w2bi, Inc in New Jersey USA, currently work in a large multinational company based in Redmond, WA.

My buzzwords at the moment: .NET, C#, ASP.NET, MVC, LINQ, TypeScript, JavaScript, AngularJS, HTML, JSON, services.

Still buzzing: C++, Win32, ATL, MFC, SQL, WinForms, WebForms, EF, Sockets, TCP/IP, Remoting.

You may also be interested in...

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.170713.1 | Last Updated 15 Dec 2003
Article Copyright 2003 by Alex Kolesnichenko
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid