// Greg Stitt, Ann Gordon-Ross // SendOptions.cpp : implementation file // #include "stdafx.h" #include "vahid.h" #include "SendOptions.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CSendOptions dialog CSendOptions::CSendOptions(CWnd* pParent /*=NULL*/) : CDialog(CSendOptions::IDD, pParent) { //{{AFX_DATA_INIT(CSendOptions) m_nSendTime = 0; m_strPath = _T(""); //}}AFX_DATA_INIT } void CSendOptions::DoDataExchange(CDataExchange* pDX) { CDialog::DoDataExchange(pDX); //{{AFX_DATA_MAP(CSendOptions) DDX_Text(pDX, IDC_SENDTIME, m_nSendTime); DDV_MinMaxInt(pDX, m_nSendTime, 1, 60); DDX_Text(pDX, IDC_PATH, m_strPath); //}}AFX_DATA_MAP } BEGIN_MESSAGE_MAP(CSendOptions, CDialog) //{{AFX_MSG_MAP(CSendOptions) //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CSendOptions message handlers BOOL CSendOptions::OnInitDialog() { CDialog::OnInitDialog(); // set range of spin control CSpinButtonCtrl* spin = (CSpinButtonCtrl*) GetDlgItem(IDC_CHANGETIME); spin->SetRange(1,60); spin->SetPos(m_nSendTime); // TODO: Add extra initialization here return TRUE; // return TRUE unless you set the focus to a control // EXCEPTION: OCX Property Pages should return FALSE }