// DlgNew.cpp : implementation file // #include "stdafx.h" #include "Paint.h" #include "DlgNew.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CDlgNewFile dialog CDlgNewFile::CDlgNewFile(CWnd* pParent /*=NULL*/) : CDialog(CDlgNewFile::IDD, pParent) { //{{AFX_DATA_INIT(CDlgNewFile) m_nHeight = 0; m_nWidth = 0; m_RadioBpp = -1; //}}AFX_DATA_INIT } void CDlgNewFile::DoDataExchange(CDataExchange* pDX) { CDialog::DoDataExchange(pDX); //{{AFX_DATA_MAP(CDlgNewFile) DDX_Text(pDX, IDC_EDIT_HEIGHT, m_nHeight); DDV_MinMaxInt(pDX, m_nHeight, 1, 10000); DDX_Text(pDX, IDC_EDIT_WIDTH, m_nWidth); DDV_MinMaxInt(pDX, m_nWidth, 1, 10000); DDX_Radio(pDX, IDC_RADIO_1BBP, m_RadioBpp); //}}AFX_DATA_MAP } BEGIN_MESSAGE_MAP(CDlgNewFile, CDialog) //{{AFX_MSG_MAP(CDlgNewFile) // NOTE: the ClassWizard will add message map macros here //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CDlgNewFile message handlers