ScanPortDlg.h
上传用户:by888888
上传日期:2015-06-24
资源大小:42k
文件大小:2k
源码类别:

Telnet客户端

开发平台:

Visual C++

  1. // ScanPortDlg.h : header file
  2. //
  3. #if !defined(AFX_SCANPORTDLG_H__153FD1B0_957D_45E2_BE36_0A77152DE9ED__INCLUDED_)
  4. #define AFX_SCANPORTDLG_H__153FD1B0_957D_45E2_BE36_0A77152DE9ED__INCLUDED_
  5. #if _MSC_VER > 1000
  6. #pragma once
  7. #endif // _MSC_VER > 1000
  8. /////////////////////////////////////////////////////////////////////////////
  9. // CScanPortDlg dialog
  10. class CScanPortDlg : public CDialog
  11. {
  12. // Construction
  13. public:
  14. CScanPortDlg(CWnd* pParent = NULL); // standard constructor
  15. // Dialog Data
  16. //{{AFX_DATA(CScanPortDlg)
  17. enum { IDD = IDD_SCANPORT_DIALOG };
  18. CEdit m_ctrSpecifiedPorts;
  19. CButton m_ctrCheck;
  20. CButton m_ctrAddPortButton;
  21. CTreeCtrl m_ctrResultTree;
  22. CButton m_ctrBeginScan;
  23. CString m_csHostOrIp;
  24. BOOL m_bIsSpecifiedPort;
  25. UINT m_nMaxThread;
  26. UINT m_iStartPort;
  27. DWORD m_dwTimeOut;
  28. UINT m_iEndPort;
  29. //}}AFX_DATA
  30. // ClassWizard generated virtual function overrides
  31. //{{AFX_VIRTUAL(CScanPortDlg)
  32. public:
  33. virtual BOOL PreTranslateMessage(MSG* pMsg);
  34. protected:
  35. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  36. //}}AFX_VIRTUAL
  37. // Implementation
  38. protected:
  39. HICON m_hIcon;
  40. // Generated message map functions
  41. //{{AFX_MSG(CScanPortDlg)
  42. virtual BOOL OnInitDialog();
  43. afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
  44. afx_msg void OnPaint();
  45. afx_msg HCURSOR OnQueryDragIcon();
  46. afx_msg void OnIsSpecifiedPort();
  47. afx_msg void OnScan();
  48. afx_msg void OnDestroy();
  49. afx_msg void OnTimer(UINT nIDEvent);
  50. afx_msg void OnChangeSpecifiedPorts();
  51. //}}AFX_MSG
  52. afx_msg void OnScanThread(WPARAM wParam, LPARAM lParam);
  53. DECLARE_MESSAGE_MAP()
  54. private:
  55. void SaveDefaultPorts();
  56. void ReadDefaultPorts();
  57. short m_nHasComplete;
  58. HANDLE m_hThread;
  59. CProgressCtrl* m_pProgressCtrl;
  60. DWORD m_dwPercentSeconds;
  61. HTREEITEM m_hParentTree;
  62. BOOL m_bTerminate;
  63. };
  64. //{{AFX_INSERT_LOCATION}}
  65. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  66. #endif // !defined(AFX_SCANPORTDLG_H__153FD1B0_957D_45E2_BE36_0A77152DE9ED__INCLUDED_)