-
Notifications
You must be signed in to change notification settings - Fork 0
/
CServerSettingDlg.h
51 lines (44 loc) · 1.05 KB
/
CServerSettingDlg.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#pragma once
#include "afxdialogex.h"
// CServerSettingDlg 对话框
class CServerSettingDlg : public CDialogEx
{
DECLARE_DYNAMIC(CServerSettingDlg)
public:
CServerSettingDlg(CWnd* pParent = nullptr); // 标准构造函数
virtual ~CServerSettingDlg();
// 对话框数据
#ifdef AFX_DESIGN_TIME
enum { IDD = IDD_SERVER_SETTING_DIALOG };
#endif
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
DECLARE_MESSAGE_MAP()
public:
// 服务器密码
// CEdit m_password;
afx_msg void OnBnClickedConnectApply();
// 服务器端口
CString m_port;
// 服务器IP地址
CString m_ip;
virtual BOOL OnInitDialog();
afx_msg void OnBnClickedConnectTest();
// 服务器密码
// virtual void PostNcDestroy();
// 服务器密码
CString m_password;
private:
// 检查IP合法性
// bool CheckIP(CString ip);
public:
// 检查IP合法性
// bool CheckIP(CString* ip);
// bool CheckIP(CString ip);
private:
// static bool CheckSetting();
public:
// 检查服务器设置合法性
bool CheckSetting();
// SOCKET clientSocket;
};