www.pudn.com > MFC_OGLTest1.rar > SelectTypeDlg.cpp, change:2007-09-18,size:1299b


// SelectTypeDlg.cpp : implementation file 
// 
 
#include "stdafx.h" 
#include "MFC_OGLTest.h" 
#include "SelectTypeDlg.h" 
 
#ifdef _DEBUG 
#define new DEBUG_NEW 
#undef THIS_FILE 
static char THIS_FILE[] = __FILE__; 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
// CSelectTypeDlg dialog 
 
 
CSelectTypeDlg::CSelectTypeDlg(CWnd* pParent /*=NULL*/) 
	: CDialog(CSelectTypeDlg::IDD, pParent) 
{ 
	//{{AFX_DATA_INIT(CSelectTypeDlg) 
	m_edite = -1; 
	//}}AFX_DATA_INIT 
} 
 
 
void CSelectTypeDlg::DoDataExchange(CDataExchange* pDX) 
{ 
	CDialog::DoDataExchange(pDX); 
	//{{AFX_DATA_MAP(CSelectTypeDlg) 
	DDX_Radio(pDX, IDC_RADIO1, m_edite); 
	//}}AFX_DATA_MAP 
} 
 
 
BEGIN_MESSAGE_MAP(CSelectTypeDlg, CDialog) 
	//{{AFX_MSG_MAP(CSelectTypeDlg) 
	ON_BN_CLICKED(IDC_BUTTONOK, OnButtonok) 
	ON_BN_CLICKED(IDC_BUTTONEND, OnButtonend) 
	//}}AFX_MSG_MAP 
END_MESSAGE_MAP() 
 
///////////////////////////////////////////////////////////////////////////// 
// CSelectTypeDlg message handlers 
 
void CSelectTypeDlg::OnButtonok()  
{ 
	// TODO: Add your control notification handler code here 
	CDialog::OnOK(); 
	UpdateData(true); 
} 
 
void CSelectTypeDlg::OnButtonend()  
{ 
	// TODO: Add your control notification handler code here 
	CDialog::OnCancel(); 
}