PageGeneral.h
上传用户:geanq888
上传日期:2007-01-03
资源大小:316k
文件大小:2k
源码类别:

Ftp客户端

开发平台:

Visual C++

  1. #if !defined(AFX_PAGEGENERAL_H__E60D4642_763C_11D1_82BF_444553540000__INCLUDED_)
  2. #define AFX_PAGEGENERAL_H__E60D4642_763C_11D1_82BF_444553540000__INCLUDED_
  3. #if _MSC_VER >= 1000
  4. #pragma once
  5. #endif // _MSC_VER >= 1000
  6. // PageGeneral.h : header file
  7. //
  8. #include "Netnode.h"
  9. #include "Ping.h"
  10. /////////////////////////////////////////////////////////////////////////////
  11. // CPageGeneral dialog
  12. class CPageGeneral : public CPropertyPage
  13. {
  14. DECLARE_DYNCREATE(CPageGeneral)
  15. // Construction
  16. public:
  17. CPageGeneral();
  18. ~CPageGeneral();
  19.   CToolTipCtrl m_ToolTip;
  20.   CPing m_p;
  21.   CPingReply m_pr;
  22.   CNetNode* m_pRootNode;
  23.   void CreateRootNode();
  24.   void AddNodeToTree(CNetNode*, HTREEITEM);
  25.   void UpdateDisplay(LPTV_ITEM);
  26. // Dialog Data
  27. //{{AFX_DATA(CPageGeneral)
  28. enum { IDD = IDD_PAGE_GENERAL };
  29. CButton m_Resolve;
  30. CButton m_Ping;
  31. CButton m_Enumerate;
  32. CEdit m_Address;
  33. CTreeCtrl m_Tree;
  34. CString m_sDisplayType;
  35. CString m_sLocalName;
  36. CString m_sProvider;
  37. CString m_sRemoteName;
  38. CString m_sScope;
  39. CString m_sType;
  40. CString m_sUsage;
  41. CString m_sComment;
  42. DWORD m_dwPingTimeout;
  43. BYTE m_bPingPacket;
  44. //}}AFX_DATA
  45. // Overrides
  46. // ClassWizard generate virtual function overrides
  47. //{{AFX_VIRTUAL(CPageGeneral)
  48. public:
  49. virtual BOOL PreTranslateMessage(MSG* pMsg);
  50. protected:
  51. virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  52. //}}AFX_VIRTUAL
  53. // Implementation
  54. protected:
  55. // Generated message map functions
  56. //{{AFX_MSG(CPageGeneral)
  57. virtual BOOL OnInitDialog();
  58. afx_msg void OnResolve();
  59. afx_msg void OnItemexpandingTree(NMHDR* pNMHDR, LRESULT* pResult);
  60. afx_msg void OnSelchangedTree(NMHDR* pNMHDR, LRESULT* pResult);
  61. afx_msg void OnEnumerate();
  62. afx_msg void OnPing();
  63. afx_msg void OnChangeAddress();
  64. //}}AFX_MSG
  65. DECLARE_MESSAGE_MAP()
  66. };
  67. //{{AFX_INSERT_LOCATION}}
  68. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  69. #endif // !defined(AFX_PAGEGENERAL_H__E60D4642_763C_11D1_82BF_444553540000__INCLUDED_)