Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
1.0 KiB

  1. // TreeNode.h: interface for the CTreeNode class.
  2. //
  3. //////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_TREENODE_H__3B753848_4860_4DC5_AC1E_F3514CE4E839__INCLUDED_)
  5. #define AFX_TREENODE_H__3B753848_4860_4DC5_AC1E_F3514CE4E839__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. enum FolderType
  10. {
  11. FOLDER_TYPE_INBOX,
  12. FOLDER_TYPE_OUTBOX,
  13. FOLDER_TYPE_SENT_ITEMS,
  14. FOLDER_TYPE_INCOMING,
  15. FOLDER_TYPE_SERVER,
  16. FOLDER_TYPE_COVER_PAGES,
  17. FOLDER_TYPE_MAX
  18. };
  19. class CFolderListView;
  20. class CTreeNode : public CObject
  21. {
  22. public:
  23. CTreeNode(FolderType type);
  24. virtual ~CTreeNode();
  25. FolderType Type() const { return m_Type; }
  26. virtual BOOL IsRefreshing() const = 0;
  27. virtual void AssertValid() const;
  28. DECLARE_DYNAMIC(CTreeNode)
  29. protected:
  30. FolderType m_Type; // Type of this folder
  31. };
  32. #endif // !defined(AFX_TREENODE_H__3B753848_4860_4DC5_AC1E_F3514CE4E839__INCLUDED_)