Click here to Skip to main content
15,894,017 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.3K   5.2K   128  
Extended MessageBox class
#if !defined(AFX_PAGEBUTTONS_H__F8FCA642_FCF2_42F7_84D0_F16D848641E3__INCLUDED_)
#define AFX_PAGEBUTTONS_H__F8FCA642_FCF2_42F7_84D0_F16D848641E3__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// CPageButtons dialog

class CPageButtons : public CPropertyPage
{
	DECLARE_DYNCREATE(CPageButtons)

// Construction
public:
	CPageButtons();
	~CPageButtons();

// Dialog Data
	//{{AFX_DATA(CPageButtons)
	enum { IDD = IDD_PAGE_BUTTONS };
	int		m_buttons;
	int		m_def_button;
	int		m_align;
	BOOL	m_check_under;
	int		m_timeout;
	BOOL	m_global_check;
	UINT	m_timeout_value;
	BOOL	m_help_btn;
	UINT	m_help_index;
	CString	m_sCustomButtons;
	BOOL	m_use_check;
	BOOL	m_default_state;
	CString	m_CheckBoxName;
	BOOL	m_yes_to_all;
	BOOL	m_no_to_all;
	BOOL	m_report_btn;
	//}}AFX_DATA


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

// Implementation
protected:
	// Generated message map functions
	//{{AFX_MSG(CPageButtons)
	virtual BOOL OnInitDialog();
	afx_msg void OnChangeControl();
	afx_msg void OnChangeTimeout();
	afx_msg void OnResetDoNotAsk();
	afx_msg void OnChangeCheckboxName();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

};

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

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