Source code of Windows XP (NT5)
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.

43 lines
955 B

  1. //Copyright (c) 1998 - 1999 Microsoft Corporation
  2. /*++
  3. Module Name:
  4. TreeNode.h
  5. Abstract:
  6. This Module contains the CTreeNode class
  7. (Class used for representing every node in the tree view);
  8. Author:
  9. Arathi Kundapur (v-akunda) 11-Feb-1998
  10. Revision History:
  11. --*/
  12. #include <afx.h>
  13. class CTreeNode : public CObject
  14. {
  15. public:
  16. // constructor
  17. CTreeNode(NODETYPE NodeType, CObject* pObject) { m_NodeType = NodeType; m_pTreeObject = pObject; }
  18. // Returns the node type
  19. NODETYPE GetNodeType() { return m_NodeType; }
  20. // Returns the object pointed to by this node
  21. CObject *GetTreeObject() { return m_pTreeObject; }
  22. // Returns the sort order stored in the object
  23. ULONG GetSortOrder() { return m_SortOrder; }
  24. // Sets the sort order stored with the object
  25. void SetSortOrder(ULONG order) { m_SortOrder = order; }
  26. private:
  27. NODETYPE m_NodeType;
  28. CObject* m_pTreeObject;
  29. ULONG m_SortOrder;
  30. };