OptionTreeItemSpinner.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_ITEMSPINNER
  22. #define OT_ITEMSPINNER
  23. #if _MSC_VER > 1000
  24. #pragma once
  25. #endif // _MSC_VER > 1000
  26. // OptionTreeItemSpinner.h : header file
  27. //
  28. // Added Headers
  29. //#include "CommonRes.h"
  30. #include "OptionTreeDef.h"
  31. #include "OptionTreeItem.h"
  32. #include "OptionTreeSpinnerButton.h"
  33. // Classes
  34. class COptionTree;
  35. /////////////////////////////////////////////////////////////////////////////
  36. // COptionTreeItemSpinner window
  37. class COptionTreeItemSpinner : public COptionTreeSpinnerButton, public COptionTreeItem
  38. {
  39. // Construction
  40. public:
  41. COptionTreeItemSpinner();
  42. virtual void OnMove();
  43. virtual void OnRefresh();
  44. virtual void OnCommit();
  45. virtual void OnActivate();
  46. virtual void CleanDestroyWindow();
  47. virtual void OnDeSelect();
  48. virtual void OnSelect();
  49. virtual void DrawAttribute(CDC *pDC, const RECT &rcRect);
  50. // Attributes
  51. public:
  52. // Operations
  53. public:
  54. // Overrides
  55. // ClassWizard generated virtual function overrides
  56. //{{AFX_VIRTUAL(COptionTreeItemSpinner)
  57. //}}AFX_VIRTUAL
  58. // Implementation
  59. public:
  60. BOOL CreateSpinnerItem(DWORD dwOptions, double dValue, double dRangeBottom, double dRangeTop);
  61. virtual ~COptionTreeItemSpinner();
  62. void           LostFocus() {m_bFocus=FALSE;};
  63. protected:
  64. LRESULT WM_CommitChanges(WPARAM wParam, LPARAM lParam);
  65. // Generated message map functions
  66. protected:
  67. BOOL m_bFocus;
  68. //{{AFX_MSG(COptionTreeItemSpinner)
  69. afx_msg void OnKillFocus(CWnd* pNewWnd);
  70. afx_msg void OnSetFocus(CWnd* pOldWnd);
  71. //}}AFX_MSG
  72. DECLARE_MESSAGE_MAP()
  73. };
  74. /////////////////////////////////////////////////////////////////////////////
  75. //{{AFX_INSERT_LOCATION}}
  76. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  77. #endif // !OT_ITEMSPINNER