Click here to Skip to main content
15,887,683 members
Articles / Desktop Programming / MFC

Taskbar Notification Dialog

Rate me:
Please Sign up or sign in to vote.
4.94/5 (67 votes)
11 Jul 20023 min read 681.8K   18.7K   329  
A MSN IM-style popup notification dialog
// TaskBarNotifierDemoDlg.h : header file
//

#pragma once
#include "afxwin.h"
#include "TaskbarNotifier.h"


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

// Dialog Data
	enum { IDD = IDD_TASKBARNOTIFIERDEMO_DIALOG };

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


// Implementation
protected:
	HICON m_hIcon;
	CEdit m_wndEdit;
	CTaskbarNotifier m_wndTaskbarNotifier1;
	CTaskbarNotifier m_wndTaskbarNotifier2;
	CTaskbarNotifier m_wndTaskbarNotifier3;
	CTaskbarNotifier m_wndTaskbarNotifier4;

	// Generated message map functions
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnBnClickedButton1();
	afx_msg void OnBnClickedButton2();
	afx_msg void OnBnClickedButton3();
	afx_msg void OnBnClickedButton4();
	afx_msg LRESULT OnTaskbarNotifierClicked(WPARAM wParam,LPARAM lParam);
};

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.


Written By
Web Developer
United States United States
I live in Santa Clara CA and work as a software engineer for SAP Business Objects.

My areas of expertise are user interface developments in Eclipse RCP / SWT / Draw 2D and C#

Comments and Discussions