?? portscanerdlg.h
字號(hào):
// PortScanerDlg.h : header file
//
#if !defined(AFX_PORTSCANERDLG_H__E5DAC08B_0922_4D0B_866C_108596CCB1A8__INCLUDED_)
#define AFX_PORTSCANERDLG_H__E5DAC08B_0922_4D0B_866C_108596CCB1A8__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CPortScanerDlg dialog
UINT SendThread(LPVOID pParam);
UINT RecvThread(LPVOID pParam);
class CPortScanerDlg : public CDialog
{
extern friend UINT SendThread(LPVOID pParam);
// Construction
public:
void SendOver();
void AddPort(in_addr addr,int port);
CPortScanerDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CPortScanerDlg)
enum { IDD = IDD_PORTSCANER_DIALOG };
CTreeCtrl m_tree;
CButton m_ok;
CIPAddressCtrl m_ip2;
CIPAddressCtrl m_ip1;
CString m_portlist;
UINT m_delay;
int m_speed;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CPortScanerDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CPortScanerDlg)
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 OnTimer(UINT nIDEvent);
afx_msg void OnButton1();
afx_msg void OnButton4();
afx_msg void OnButton2();
afx_msg void OnButton3();
afx_msg void OnButtonSave();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
BOOL IsScaning;
unsigned char IP[8];
int nPort;
int* portlist;
BOOL CheckIP();
BOOL CheckPort();
CWinThread * hSend;
CWinThread * hRecv;
void ExpandNode(HTREEITEM hti);
void CollapesNode(HTREEITEM hti);
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_PORTSCANERDLG_H__E5DAC08B_0922_4D0B_866C_108596CCB1A8__INCLUDED_)
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -