www.pudn.com > Hanoi_Src.rar > ExitDlg.cpp


// ExitDlg.cpp : implementation file 
// 
 
#include "stdafx.h" 
#include "Hanoi.h" 
#include "ExitDlg.h" 
 
#ifdef _DEBUG 
#define new DEBUG_NEW 
#undef THIS_FILE 
static char THIS_FILE[] = __FILE__; 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
// CExitDlg dialog 
 
 
CExitDlg::CExitDlg(CWnd* pParent /*=NULL*/,BOOL exitenable /*=TURE*/) 
	: CDialog(CExitDlg::IDD, pParent) 
{ 
	m_bEnable=exitenable; 
	//{{AFX_DATA_INIT(CExitDlg) 
		// NOTE: the ClassWizard will add member initialization here 
	//}}AFX_DATA_INIT 
} 
 
 
void CExitDlg::DoDataExchange(CDataExchange* pDX) 
{ 
	CDialog::DoDataExchange(pDX); 
	//{{AFX_DATA_MAP(CExitDlg) 
	DDX_Control(pDX, IDOK, m_okbutton); 
	//}}AFX_DATA_MAP 
} 
 
 
BEGIN_MESSAGE_MAP(CExitDlg, CDialog) 
	//{{AFX_MSG_MAP(CExitDlg) 
	//}}AFX_MSG_MAP 
END_MESSAGE_MAP() 
 
///////////////////////////////////////////////////////////////////////////// 
// CExitDlg message handlers 
 
BOOL CExitDlg::OnInitDialog()  
{ 
	CDialog::OnInitDialog(); 
 
	m_okbutton.EnableWindow(m_bEnable); 
	 
	// TODO: Add extra initialization here 
	 
	return TRUE;  // return TRUE unless you set the focus to a control 
	              // EXCEPTION: OCX Property Pages should return FALSE 
}