Click here to Skip to main content
15,897,315 members
Articles / Desktop Programming / WTL

CPPMessageBox v1.0

Rate me:
Please Sign up or sign in to vote.
4.89/5 (53 votes)
14 Feb 2005CPOL22 min read 175.8K   5.2K   128  
Extended MessageBox class
// CPPMessageBox_demoDlg.h : header file
//


#if !defined(AFX_CPPMESSAGEBOX_DEMODLG_H__B9DFA990_07F6_4574_B5E4_47AEE8234A2B__INCLUDED_)
#define AFX_CPPMESSAGEBOX_DEMODLG_H__B9DFA990_07F6_4574_B5E4_47AEE8234A2B__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#define UWM_PPMSGBOX_REPORTBTN	(WM_APP + 100)

#include "PPMessageBoxClass.h"

#include "PageHeader.h"
#include "PageMessage.h"
#include "PageControl.h"
#include "PageButtons.h"
#include "PageMoreInfo.h"
#include "PageLocalization.h"


/////////////////////////////////////////////////////////////////////////////
// CPPMessageBox_demoDlg dialog

class CPPMessageBox_demoDlg : public CDialog
{
// Construction
public:
	CPropertySheet m_sheet;
	CPageHeader m_page_header;
	CPageMessage m_page_message;
	CPageControl m_page_control;
	CPageButtons m_page_buttons;
	CPageMoreInfo m_page_moreinfo;
	CPageLocalization m_page_localization;
	CPPMessageBox_demoDlg(CWnd* pParent = NULL);	// standard constructor



// Dialog Data
	//{{AFX_DATA(CPPMessageBox_demoDlg)
	enum { IDD = IDD_CPPMESSAGEBOX_DEMO_DIALOG };
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CPPMessageBox_demoDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;
	void DrawResult(int nResult);

	// Generated message map functions
	//{{AFX_MSG(CPPMessageBox_demoDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnShowMessageBox();
	afx_msg void OnButton2();
	//}}AFX_MSG
	afx_msg LRESULT OnReportButton(WPARAM wParam, LPARAM lParam);
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_CPPMESSAGEBOX_DEMODLG_H__B9DFA990_07F6_4574_B5E4_47AEE8234A2B__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.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer SvyazInvest
Belarus Belarus
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions