www.pudn.com > GandyDraw_MFC.rar > SetWidthDlg.cpp, change:2006-11-14,size:948b


// SetWidthDlg.cpp : 实现文件 
// 
 
#include "stdafx.h" 
#include "GandyDraw.h" 
#include "SetWidthDlg.h" 
 
 
//#include "GandyDrawView.h" 
 
 
// CSetWidthDlg 对话框 
 
IMPLEMENT_DYNAMIC(CSetWidthDlg, CDialog) 
 
CSetWidthDlg::CSetWidthDlg(CWnd* pParent /*=NULL*/) 
	: CDialog(CSetWidthDlg::IDD, pParent) 
	, m_iSetWidth(1) 
{ 
 
} 
 
CSetWidthDlg::~CSetWidthDlg() 
{ 
} 
 
void CSetWidthDlg::DoDataExchange(CDataExchange* pDX) 
{ 
	CDialog::DoDataExchange(pDX); 
	DDX_Text(pDX, IDC_SETWIDTH, m_iSetWidth); 
} 
 
 
BEGIN_MESSAGE_MAP(CSetWidthDlg, CDialog) 
	ON_BN_CLICKED(IDOK, &CSetWidthDlg::OnBnClickedOk) 
	ON_BN_CLICKED(IDCANCEL, &CSetWidthDlg::OnBnClickedCancel) 
END_MESSAGE_MAP() 
 
 
// CSetWidthDlg 消息处理程序 
 
void CSetWidthDlg::OnBnClickedOk() 
{ 
	UpdateData(true); 
	OnOK(); 
} 
 
int CSetWidthDlg::GetWidth(void) 
{ 
	//UpdateData(false); 
	return m_iSetWidth; 
} 
 
void CSetWidthDlg::OnBnClickedCancel() 
{ 
	OnCancel(); 
}