OptionTreeItemStatic.h
Upload User: kairuinn
Upload Date: 2009-02-07
Package Size: 2922k
Code Size: 2k
Category:

Graph program

Development Platform:

Visual C++

  1. // COptionTree
  2. //
  3. // License
  4. // -------
  5. // This code is provided "as is" with no expressed or implied warranty.
  6. // 
  7. // You may use this code in a commercial product with or without acknowledgement.
  8. // However you may not sell this code or any modification of this code, this includes 
  9. // commercial libraries and anything else for profit.
  10. //
  11. // I would appreciate a notification of any bugs or bug fixes to help the control grow.
  12. //
  13. // History:
  14. // --------
  15. // See License.txt for full history information.
  16. //
  17. //
  18. // Copyright (c) 1999-2002 
  19. // ComputerSmarts.net 
  20. // mattrmiller@computersmarts.net
  21. #ifndef OT_ITEMSTATIC
  22. #define OT_ITEMSTATIC
  23. #if _MSC_VER > 1000
  24. #pragma once
  25. #endif // _MSC_VER > 1000
  26. // Added Headers
  27. //#include "CommonRes.h"
  28. #include "OptionTreeDef.h"
  29. #include "OptionTreeItem.h"
  30. // Classes
  31. class COptionTree;
  32. class COptionTreeItemStatic : public COptionTreeItem
  33. {
  34. public:
  35. BOOL CreateStaticItem(DWORD dwOptions);
  36. BOOL GetOption(DWORD dwOption);
  37. void SetOption(DWORD dwOption, BOOL bSet);
  38. virtual void OnMove();
  39. virtual void OnRefresh();
  40. virtual void OnCommit();
  41. virtual void OnActivate();
  42. virtual void CleanDestroyWindow();
  43. virtual void OnDeSelect();
  44. virtual void OnSelect();
  45. virtual void DrawAttribute(CDC *pDC, const RECT &rcRect);
  46. void SetStaticText(CString strStaticText);
  47. CString GetStaticText();
  48. COptionTreeItemStatic();
  49. virtual ~COptionTreeItemStatic();
  50. protected:
  51. CString m_strStaticText;
  52. DWORD m_dwOptions;
  53. };
  54. #endif // !OT_ITEMSTATIC