Page1.h
上传用户:heseme
上传日期:2009-12-23
资源大小:228k
文件大小:2k
开发平台:

Visual C++

  1. #if !defined(AFX_PAGE1_H__38E9E2E2_A409_11D4_8595_00D00912B25C__INCLUDED_)
  2. #define AFX_PAGE1_H__38E9E2E2_A409_11D4_8595_00D00912B25C__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // Page1.h : header file
  7. //
  8. #define INITIAL_END_SEGMENT 0x40 /* Initial file blank line as end of segment */
  9. #define INNET 0x1
  10. #define OUTNET 0x2
  11. #define DM 0x3
  12. #define INNETMASK 0x4
  13. #define JL  0x13
  14. #define COMMENT 0x8000 /* Comment line */
  15. #define COMMAND_UNKNOWN 0x0 /* Unknown command */
  16. /////////////////////////////////////////////////////////////////////////////
  17. // CPage1 dialog
  18. class CPage1 : public CPropertyPage
  19. {
  20. DECLARE_DYNCREATE(CPage1)
  21. // Construction
  22. public:
  23. int GetBestData();
  24. WORD GetCommand(char *pbuf);
  25. void ReadCommand(FILE *pf, char *pbuf);
  26. WORD GetDataFromFile();
  27. void GetNetCardIP(LPBYTE pStr);
  28. void GetNetCardName();
  29. CPage1();
  30. ~CPage1();
  31. // Dialog Data
  32. //{{AFX_DATA(CPage1)
  33. enum { IDD = IDD_DIALOG2 };
  34. CEdit m_StaticNatMap_tcp;
  35. CEdit m_StaticNatMap_udp;
  36. CComboBox m_sel_protocal_ct;
  37. CComboBox m_SelAdaptDm;
  38. CComboBox m_SelAdaptInNet;
  39. CComboBox m_SelAdaptOutNet;
  40. CString m_OutNetIp;
  41. CString m_OutNetMask;
  42. CString m_InNetIp;
  43. CString m_InNetMask;
  44. CString m_DmIp;
  45. CString m_DmMask;
  46. UINT m_UdpTimeOut;
  47. UINT m_PortEnd;
  48. UINT m_MaxPortNum;
  49. UINT m_PortBegin;
  50. UINT m_TcpTimeOut;
  51. //}}AFX_DATA
  52. // Overrides
  53. // ClassWizard generate virtual function overrides
  54. //{{AFX_VIRTUAL(CPage1)
  55. protected:
  56. virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  57. //}}AFX_VIRTUAL
  58. // Implementation
  59. protected:
  60. // Generated message map functions
  61. //{{AFX_MSG(CPage1)
  62. afx_msg void OnButton1();
  63. virtual BOOL OnInitDialog();
  64. afx_msg void OnSelchangeCombo2();
  65. afx_msg void OnSelchangeCombo4();
  66. afx_msg void OnSelchangeCombo3();
  67. //}}AFX_MSG
  68. DECLARE_MESSAGE_MAP()
  69. };
  70. //{{AFX_INSERT_LOCATION}}
  71. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  72. #endif // !defined(AFX_PAGE1_H__38E9E2E2_A409_11D4_8595_00D00912B25C__INCLUDED_)