OptionTreeList.h
Upload User: kairuinn
Upload Date: 2009-02-07
Package Size: 2922k
Code Size: 3k
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_LIST
  22. #define OT_LIST
  23. #if _MSC_VER > 1000
  24. #pragma once
  25. #endif // _MSC_VER > 1000
  26. // OptionTreeList.h : header file
  27. //
  28. /////////////////////////////////////////////////////////////////////////////
  29. // COptionTreeList window
  30. // Added Headers
  31. #include "OptionTreeDef.h"
  32. // Classes
  33. class COptionTree;
  34. class COptionTreeList : public CWnd
  35. {
  36. // Construction
  37. public:
  38. COptionTreeList();
  39. BOOL Create(DWORD dwStyle, RECT rcRect, CWnd* pParentWnd, UINT nID);
  40. // Attributes
  41. public:
  42. // Operations
  43. public:
  44. // Overrides
  45. // ClassWizard generated virtual function overrides
  46. //{{AFX_VIRTUAL(COptionTreeList)
  47. //}}AFX_VIRTUAL
  48. // Implementation
  49. public:
  50. void UpdateResize();
  51. virtual ~COptionTreeList();
  52. protected:
  53. // Generated message map functions
  54. protected:
  55. // CPropTree class that this class belongs
  56. COptionTree *m_otOption;
  57. long m_lPrevCol;
  58. BOOL m_bColDrag;
  59. HCURSOR m_hSplitter;
  60. HCURSOR m_hHand;
  61. long m_lColumn;
  62. //{{AFX_MSG(COptionTreeList)
  63. afx_msg void OnSize(UINT nType, int cx, int cy);
  64. afx_msg void OnPaint();
  65. afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
  66. afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
  67. afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
  68. afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
  69. afx_msg void OnMouseMove(UINT nFlags, CPoint point);
  70. afx_msg BOOL OnMouseWheel(UINT nFlags, short zDelta, CPoint pt);
  71. afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
  72. afx_msg UINT OnGetDlgCode();
  73. afx_msg BOOL OnEraseBkgnd(CDC* pDC);
  74. afx_msg void OnKillFocus(CWnd* pNewWnd);
  75. afx_msg void OnSizing(UINT fwSide, LPRECT pRect);
  76. afx_msg void OnSetFocus(CWnd* pOldWnd);
  77. //}}AFX_MSG
  78. DECLARE_MESSAGE_MAP()
  79. public:
  80. void GetHandCursor();
  81. void SetOptionsOwner(COptionTree *otOption);
  82. void CheckVisibleFocus();
  83. afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
  84. };
  85. /////////////////////////////////////////////////////////////////////////////
  86. //{{AFX_INSERT_LOCATION}}
  87. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  88. #endif // !OT_LIST