This commit is contained in:
66
HookMsg/SrvConnectDlg.cpp
Normal file
66
HookMsg/SrvConnectDlg.cpp
Normal file
@@ -0,0 +1,66 @@
|
|||||||
|
// 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();
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user