Click here to Skip to main content
12,883,460 members (40,527 online)
Click here to Skip to main content


491 bookmarked
Posted 29 Nov 1999

Adding Icons to the System Tray

, 2 Aug 2003 CPOL
A class for adding icons to the system tray
#if !defined(AFX_BALLOONDLG_H__D7C677EE_194E_4281_A2EB_13C04C59B3EB__INCLUDED_)
#define AFX_BALLOONDLG_H__D7C677EE_194E_4281_A2EB_13C04C59B3EB__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// BalloonDlg.h : header file

// CBalloonDlg dialog

class CBalloonDlg : public CDialog
// Construction
	CBalloonDlg(CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	CComboBoxEx	m_combo;
	CString	m_sBalloonText;
	CString	m_sBalloonTitle;
	UINT	m_uTimeout;

    DWORD m_dwIcon;

// Overrides
	// ClassWizard generated virtual function overrides
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

// Implementation
    CImageList m_imglist;

	// Generated message map functions
	virtual BOOL OnInitDialog();
	virtual void OnOK();

// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_BALLOONDLG_H__D7C677EE_194E_4281_A2EB_13C04C59B3EB__INCLUDED_)

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, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Chris Maunder
Founder CodeProject
Canada Canada
Chris is the Co-founder, Administrator, Architect, Chief Editor and Shameless Hack who wrote and runs The Code Project. He's been programming since 1988 while pretending to be, in various guises, an astrophysicist, mathematician, physicist, hydrologist, geomorphologist, defence intelligence researcher and then, when all that got a bit rough on the nerves, a web developer. He is a Microsoft Visual C++ MVP both globally and for Canada locally.

His programming experience includes C/C++, C#, SQL, MFC, ASP, ASP.NET, and far, far too much FORTRAN. He has worked on PocketPCs, AIX mainframes, Sun workstations, and a CRAY YMP C90 behemoth but finds notebooks take up less desk space.

He dodges, he weaves, and he never gets enough sleep. He is kind to small animals.

Chris was born and bred in Australia but splits his time between Toronto and Melbourne, depending on the weather. For relaxation he is into road cycling, snowboarding, rock climbing, and storm chasing.

You may also be interested in...

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.170422.1 | Last Updated 3 Aug 2003
Article Copyright 1999 by Chris Maunder
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid