63 lines
1.3 KiB
C++
63 lines
1.3 KiB
C++
// SvrOptionDlg.cpp : implementation file
|
|
//
|
|
|
|
#include "stdafx.h"
|
|
#include "CheckServer.h"
|
|
#include "SvrOptionDlg.h"
|
|
|
|
#ifdef _DEBUG
|
|
#define new DEBUG_NEW
|
|
#undef THIS_FILE
|
|
static char THIS_FILE[] = __FILE__;
|
|
#endif
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// CSvrOptionDlg dialog
|
|
|
|
|
|
CSvrOptionDlg::CSvrOptionDlg(CWnd* pParent /*=NULL*/)
|
|
: CDialog(CSvrOptionDlg::IDD, pParent)
|
|
{
|
|
//{{AFX_DATA_INIT(CSvrOptionDlg)
|
|
m_strSvrIP = _T("");
|
|
m_nPort = 0;
|
|
m_strURL1 = _T("");
|
|
m_strURL2 = _T("");
|
|
//}}AFX_DATA_INIT
|
|
}
|
|
|
|
|
|
void CSvrOptionDlg::DoDataExchange(CDataExchange* pDX)
|
|
{
|
|
CDialog::DoDataExchange(pDX);
|
|
//{{AFX_DATA_MAP(CSvrOptionDlg)
|
|
DDX_Text(pDX, IDC_SVR_IP_EDIT, m_strSvrIP);
|
|
DDX_Text(pDX, IDC_SVR_PORT_EDIT, m_nPort);
|
|
DDV_MinMaxUInt(pDX, m_nPort, 10, 65535);
|
|
DDX_Text(pDX, IDC_WEB_ADDRESS1, m_strURL1);
|
|
DDX_Text(pDX, IDC_WEB_ADDRESS2, m_strURL2);
|
|
//}}AFX_DATA_MAP
|
|
}
|
|
|
|
|
|
BEGIN_MESSAGE_MAP(CSvrOptionDlg, CDialog)
|
|
//{{AFX_MSG_MAP(CSvrOptionDlg)
|
|
//}}AFX_MSG_MAP
|
|
END_MESSAGE_MAP()
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// CSvrOptionDlg message handlers
|
|
|
|
void CSvrOptionDlg::OnOK()
|
|
{
|
|
UpdateData();
|
|
CDialog::OnOK();
|
|
}
|
|
|
|
void CSvrOptionDlg::OnCancel()
|
|
{
|
|
// TODO: Add extra cleanup here
|
|
|
|
CDialog::OnCancel();
|
|
}
|