67 lines
1.4 KiB
C++
67 lines
1.4 KiB
C++
// SrvConnectDlg.cpp : implementation file
|
|
//
|
|
|
|
#include "stdafx.h"
|
|
#include "hookmsg.h"
|
|
#include "SrvConnectDlg.h"
|
|
|
|
#ifdef _DEBUG
|
|
#define new DEBUG_NEW
|
|
#undef THIS_FILE
|
|
static char THIS_FILE[] = __FILE__;
|
|
#endif
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// CSrvConnectDlg dialog
|
|
|
|
|
|
CSrvConnectDlg::CSrvConnectDlg(CWnd* pParent /*=NULL*/)
|
|
: CDialog(CSrvConnectDlg::IDD, pParent)
|
|
{
|
|
//{{AFX_DATA_INIT(CSrvConnectDlg)
|
|
m_nPort = 0;
|
|
m_strName = _T("");
|
|
m_strIP = _T("");
|
|
//}}AFX_DATA_INIT
|
|
}
|
|
|
|
|
|
void CSrvConnectDlg::DoDataExchange(CDataExchange* pDX)
|
|
{
|
|
CDialog::DoDataExchange(pDX);
|
|
//{{AFX_DATA_MAP(CSrvConnectDlg)
|
|
DDX_Text(pDX, IDC_SVR_PORT_EDIT, m_nPort);
|
|
DDX_Text(pDX, IDC_CLIENTNAME_EDIT, m_strName);
|
|
DDX_Text(pDX, IDC_SVR_IP_EDIT, m_strIP);
|
|
//}}AFX_DATA_MAP
|
|
}
|
|
|
|
|
|
BEGIN_MESSAGE_MAP(CSrvConnectDlg, CDialog)
|
|
//{{AFX_MSG_MAP(CSrvConnectDlg)
|
|
//}}AFX_MSG_MAP
|
|
END_MESSAGE_MAP()
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// CSrvConnectDlg message handlers
|
|
|
|
BOOL CSrvConnectDlg::OnInitDialog()
|
|
{
|
|
CDialog::OnInitDialog();
|
|
|
|
UpdateData(FALSE);
|
|
return TRUE; // return TRUE unless you set the focus to a control
|
|
// EXCEPTION: OCX Property Pages should return FALSE
|
|
}
|
|
|
|
void CSrvConnectDlg::OnOK()
|
|
{
|
|
UpdateData();
|
|
CDialog::OnOK();
|
|
}
|
|
|
|
void CSrvConnectDlg::OnCancel()
|
|
{
|
|
CDialog::OnCancel();
|
|
}
|