// SetPage.cpp : implementation file // #include "stdafx.h" #include "CB32.h" #include "SetPage.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CSetPage property page IMPLEMENT_DYNCREATE(CSetPage, CPropertyPage) CSetPage::CSetPage() : CPropertyPage(CSetPage::IDD) { //{{AFX_DATA_INIT(CSetPage) m_setlastfile = FALSE; m_setsort = FALSE; m_setcol = FALSE; m_setexp = FALSE; m_setimp = FALSE; m_setwin = FALSE; m_setmru = 0; m_setcity = _T(""); m_setcountry = _T(""); m_setemail = _T(""); m_setstate = _T(""); m_setweb = _T(""); m_setzip = _T(""); m_setusemru = FALSE; m_setprefix = _T(""); m_settray = FALSE; m_setcomp = _T(""); m_setpos = FALSE; m_setstart = FALSE; m_setdelete = FALSE; //}}AFX_DATA_INIT } CSetPage::~CSetPage() { } void CSetPage::DoDataExchange(CDataExchange* pDX) { CPropertyPage::DoDataExchange(pDX); //{{AFX_DATA_MAP(CSetPage) DDX_Control(pDX, IDC_SPINSETMRU, m_spinsetmru); DDX_Check(pDX, IDC_SETLASTFILE, m_setlastfile); DDX_Check(pDX, IDC_SETSORT, m_setsort); DDX_Check(pDX, IDC_SETCOL, m_setcol); DDX_Check(pDX, IDC_SETEXP, m_setexp); DDX_Check(pDX, IDC_SETIMP, m_setimp); DDX_Check(pDX, IDC_SETWIN, m_setwin); DDX_Text(pDX, IDC_SETMRU, m_setmru); DDV_MinMaxInt(pDX, m_setmru, 1, 8); DDX_Text(pDX, IDC_SETCITY, m_setcity); DDX_Text(pDX, IDC_SETCOUNTRY, m_setcountry); DDX_Text(pDX, IDC_SETEMAIL, m_setemail); DDX_Text(pDX, IDC_SETSTATE, m_setstate); DDX_Text(pDX, IDC_SETWEB, m_setweb); DDX_Text(pDX, IDC_SETZIP, m_setzip); DDX_Check(pDX, IDC_SETUSEMRU, m_setusemru); DDX_Text(pDX, IDC_SETPREFIX, m_setprefix); DDX_Check(pDX, IDC_SETTRAY, m_settray); DDX_Text(pDX, IDC_SETCOMP, m_setcomp); DDX_Check(pDX, IDC_SETPOS, m_setpos); DDX_Check(pDX, IDC_SETSTART, m_setstart); DDX_Check(pDX, IDC_SETDELETE, m_setdelete); //}}AFX_DATA_MAP } BEGIN_MESSAGE_MAP(CSetPage, CPropertyPage) //{{AFX_MSG_MAP(CSetPage) //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CSetPage message handlers BOOL CSetPage::OnInitDialog() { CPropertyPage::OnInitDialog(); m_spinsetmru.SetRange(1,8); return TRUE; // return TRUE unless you set the focus to a control // EXCEPTION: OCX Property Pages should return FALSE }