/**************************************************************************** * [S]imulated [M]edieval [A]dventure multi[U]ser [G]ame | * * -----------------------------------------------------------| \\._.// * * SmaugWiz (C) 1998 by Russ Pillsbury (Windows NT version) | (0...0) * * -----------------------------------------------------------| ).:.( * * SMAUG (C) 1994, 1995, 1996 by Derek Snider | {o o} * * -----------------------------------------------------------| / ' ' \ * * SMAUG code team: Thoric, Altrag, Blodkai, Narn, Haus, |~'~.VxvxV.~'~* * Scryn, Swordbearer, Rennard, Tricops, and Gorog. | * * ------------------------------------------------------------------------ * * Merc 2.1 Diku Mud improvments copyright (C) 1992, 1993 by Michael * * Chastain, Michael Quan, and Mitchell Tse. * * Original Diku Mud copyright (C) 1990, 1991 by Sebastian Hammer, * * Michael Seifert, Hans Henrik Staerfeldt, Tom Madsen, and Katja Nyboe. * ****************************************************************************/ // SysDlg.cpp : implementation file #include "stdafx.h" #include "SmaugWiz.h" #include "SysDlg.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CSysDlg property page IMPLEMENT_DYNCREATE(CSysDlg, CPropertyPage) CSysDlg::CSysDlg() : CPropertyPage(CSysDlg::IDD) { //{{AFX_DATA_INIT(CSysDlg) m_RebootDelay = 0; m_bAutoReboot = FALSE; m_StartDelay = 0; m_bAutoStart = FALSE; m_Port = 0; m_bResolveHostNames = FALSE; m_RebootHour = 0; m_RebootDays = 0; m_AuthDelay = 30; m_AuthGroup = -1; //}}AFX_DATA_INIT } CSysDlg::~CSysDlg() { } void CSysDlg::DoDataExchange(CDataExchange* pDX) { CPropertyPage::DoDataExchange(pDX); //{{AFX_DATA_MAP(CSysDlg) DDX_Text(pDX, IDC_ABDELAY, m_RebootDelay); DDV_MinMaxInt(pDX, m_RebootDelay, 0, 3600); DDX_Check(pDX, IDC_ABOOT, m_bAutoReboot); DDX_Text(pDX, IDC_ASDELAY, m_StartDelay); DDV_MinMaxInt(pDX, m_StartDelay, 0, 3600); DDX_Check(pDX, IDC_ASTART, m_bAutoStart); DDX_Text(pDX, IDC_EDIT_COMM, m_Port); DDV_MinMaxInt(pDX, m_Port, 1, 8000); DDX_Check(pDX, IDC_RESOLVE, m_bResolveHostNames); DDX_Text(pDX, IDC_ABTIME, m_RebootHour); DDV_MinMaxUInt(pDX, m_RebootHour, 0, 23); DDX_Text(pDX, IDC_ABFREQ, m_RebootDays); DDV_MinMaxUInt(pDX, m_RebootDays, 1, 10); DDX_Text(pDX, IDC_AUTH_DELAY, m_AuthDelay); DDV_MinMaxInt(pDX, m_AuthDelay, 0, 300); DDX_Radio(pDX, IDC_WAIT_AUTH, m_AuthGroup); //}}AFX_DATA_MAP } BEGIN_MESSAGE_MAP(CSysDlg, CPropertyPage) //{{AFX_MSG_MAP(CSysDlg) ON_WM_HELPINFO() //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CSysDlg message handlers BOOL CSysDlg::OnHelpInfo (HELPINFO* pHelpInfo) { if (pHelpInfo->iContextType == HELPINFO_WINDOW) AfxGetApp ()->WinHelp (pHelpInfo->dwContextId, HELP_CONTEXTPOPUP); return TRUE; }