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

Ftp客户端

开发平台:

Visual C++

  1. #if !defined(AFX_PAGEPEOPLE_H__E60D4644_763C_11D1_82BF_444553540000__INCLUDED_)
  2. #define AFX_PAGEPEOPLE_H__E60D4644_763C_11D1_82BF_444553540000__INCLUDED_
  3. #if _MSC_VER >= 1000
  4. #pragma once
  5. #endif // _MSC_VER >= 1000
  6. // PagePeople.h : header file
  7. //
  8. #include "PagePeopleList.h"
  9. #define   ICON_SERVER   0
  10. #define   ICON_USER     1
  11. #define   ICON_MANUAL   2
  12. #define   ICON_MAIL     3
  13. #define   ICON_EMPTY    4
  14. /////////////////////////////////////////////////////////////////////////////
  15. // CPagePeople dialog
  16. class CPagePeople : public CPropertyPage
  17. {
  18. DECLARE_DYNCREATE(CPagePeople)
  19. // Construction
  20. public:
  21. CPagePeople();
  22. ~CPagePeople();
  23. // Dialog Data
  24. //{{AFX_DATA(CPagePeople)
  25. enum { IDD = IDD_PAGE_PEOPLE };
  26. CButton m_LocalNet;
  27. CSpinButtonCtrl m_PeopleSpin;
  28. CButton m_CheckAll;
  29. CButton m_Active;
  30. CButton m_IsManual;
  31. CButton m_ActiveMail;
  32. CButton m_Every;
  33. CEdit m_User;
  34. CEdit m_Server;
  35. CString m_sServer;
  36. CString m_sUser;
  37. int m_nPeopleMinutes;
  38. BOOL m_bOnStart;
  39. BOOL m_bOnEnd;
  40. //}}AFX_DATA
  41.   CToolTipCtrl m_ToolTip;
  42.   CImageList m_ImagesSmall;
  43.   CImageList m_ImagesLarge;
  44.   CPagePeopleList m_ServerTree;
  45. //  CPtrArray* m_pAllServersArray;
  46.   int GetTreeItemNum(HTREEITEM);
  47.   HTREEITEM AddServer(LPCTSTR, int);
  48.   void AddUser(HTREEITEM, LPCTSTR, int);
  49. //  void ItemInsert(LPCTSTR);
  50. //  void ItemInsert(LPCTSTR, LPCTSTR);
  51.   void FingerManual(CString, CString);
  52. //  void SavePeople();
  53.   void AddServer();
  54.   void AddUser();
  55.   void ResetServersAndUsers();
  56.   bool IfCanCheckAll();
  57.   bool CheckAll(CString&);
  58.   void SetSmallImages();
  59.   void SetLargeImages();
  60. // Overrides
  61. // ClassWizard generate virtual function overrides
  62. //{{AFX_VIRTUAL(CPagePeople)
  63. public:
  64. virtual BOOL PreTranslateMessage(MSG* pMsg);
  65. virtual void Serialize(CArchive& ar);
  66. protected:
  67. virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  68. //}}AFX_VIRTUAL
  69. // Implementation
  70. //protected:
  71. public:
  72. // Generated message map functions
  73. //{{AFX_MSG(CPagePeople)
  74. virtual BOOL OnInitDialog();
  75. afx_msg void OnRemove();
  76. afx_msg void OnFinger();
  77. afx_msg void OnFingerManual();
  78. afx_msg void OnFingerCurrent();
  79. afx_msg void OnDblclkServertree(NMHDR* pNMHDR, LRESULT* pResult);
  80. afx_msg void OnActive();
  81. afx_msg void OnActiveMail();
  82. afx_msg void OnIsManual();
  83. afx_msg void OnCheckAll();
  84. afx_msg void OnEvery();
  85. afx_msg void OnKillfocusMinutes();
  86. afx_msg void OnLocalNet();
  87. afx_msg void OnChangeFingerserver();
  88. afx_msg void OnChangeFingeruser();
  89. //}}AFX_MSG
  90. DECLARE_MESSAGE_MAP()
  91. };
  92. //{{AFX_INSERT_LOCATION}}
  93. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  94. #endif // !defined(AFX_PAGEPEOPLE_H__E60D4644_763C_11D1_82BF_444553540000__INCLUDED_)