onetouchdlg.h
来自「可以一键自动检测局域网内的网关和未被占用的IP地址」· C头文件 代码 · 共 110 行
H
110 行
// onetouchDlg.h : header file
//
#if !defined(AFX_ONETOUCHDLG_H__20EDBFDA_8DE8_4E84_8576_FE3D4F3109E7__INCLUDED_)
#define AFX_ONETOUCHDLG_H__20EDBFDA_8DE8_4E84_8576_FE3D4F3109E7__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// COnetouchDlg dialog
class COnetouchDlg : public CDialog
{
// Construction
public:
COnetouchDlg(CWnd* pParent = NULL); // standard constructor
virtual COnetouchDlg::~COnetouchDlg();
// Dialog Data
//{{AFX_DATA(COnetouchDlg)
enum { IDD = IDD_ONETOUCH_DIALOG };
CButton m_OT;
CEdit m_pwdCtr;
CEdit m_useridCtr;
CIPAddressCtrl m_gate;
CIPAddressCtrl m_mask;
CIPAddressCtrl m_dns2;
CIPAddressCtrl m_dns1;
CIPAddressCtrl m_ip;
CComboBox m_comboCtr;
CEdit m_addrCtr;
CEdit m_portCtr;
CButton m_checkPEC;
CString m_port;
BOOL m_checkPE;
CString m_addr;
int m_combo;
CString m_userid;
CString m_pwd;
BOOL m_checkPA;
CString m_info;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(COnetouchDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
HKEY hKEY;
bool ProxyEnableFlag;
// Generated message map functions
//{{AFX_MSG(COnetouchDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
virtual void OnOK();
afx_msg void OnCheck1();
afx_msg void OnButton1();
afx_msg void OnSelchangeCombo1();
afx_msg void OnButtonauto();
afx_msg void OnBUTTONmanual();
afx_msg void OnBUTTONinPut();
afx_msg void OnBUTTONoutPut();
afx_msg LRESULT OnUpdateData(WPARAM wParam, LPARAM lParam);
afx_msg void Ononetouch();
afx_msg void OnCheck2();
afx_msg void OnChangeEdit2();
afx_msg void OnChangeEdit1();
afx_msg void OnFieldchangedIp(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnBUTTONmanual2();
afx_msg void OnChangePWD();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
void readReg(HKEY Root, LPCTSTR data_Set);
void readRegValue2Box();
// void EmitErrorMsg (long hr, char* szMsg);
// LPBYTE CString_To_LPBYTE(CString str);
CString IPaddress2CString(CIPAddressCtrl& m_IP);
// bool getHttpRet(CString testProxyServer, unsigned short testProxyPort, char* httpRetId);
CString getHost(char* name);
void Refresh();
bool isValid(CString ip);
static UINT getHttpRet( LPVOID pParam );
static UINT autoThread( LPVOID pParam );
static UINT manualThread( LPVOID pParam );
static UINT manualAutoThread( LPVOID pParam );
static UINT outPutThread( LPVOID pParam );
static UINT inPutThread( LPVOID pParam );
static UINT loadIpConfig( LPVOID pParam );
static UINT arpListenThread( LPVOID pParam );
// HRESULT FAR EXPORT COnetouchDlg::XAuthenticate::Authenticate();
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_ONETOUCHDLG_H__20EDBFDA_8DE8_4E84_8576_FE3D4F3109E7__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?