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.

135 lines
2.7 KiB

  1. // This is a part of the Microsoft Foundation Classes C++ library.
  2. // Copyright (C) 1992-1998 Microsoft Corporation
  3. // All rights reserved.
  4. //
  5. // This source code is only intended as a supplement to the
  6. // Microsoft Foundation Classes Reference and related
  7. // electronic documentation provided with the library.
  8. // See these sources for detailed information regarding the
  9. // Microsoft Foundation Classes product.
  10. #ifndef __AFXCVIEW_H__
  11. #define __AFXCVIEW_H__
  12. #ifdef _AFX_NO_AFXCMN_SUPPORT
  13. #error Windows common control classes not supported in this library variant.
  14. #endif
  15. #ifndef __AFXWIN_H__
  16. #include <afxwin.h>
  17. #endif
  18. #ifndef __AFXCMN_H__
  19. #include <afxcmn.h>
  20. #endif
  21. #ifdef _AFX_MINREBUILD
  22. #pragma component(minrebuild, off)
  23. #endif
  24. #ifndef _AFX_FULLTYPEINFO
  25. #pragma component(mintypeinfo, on)
  26. #endif
  27. #ifdef _AFX_PACKING
  28. #pragma pack(push, _AFX_PACKING)
  29. #endif
  30. /////////////////////////////////////////////////////////////////////////////
  31. // AFXRICH - MFC RichEdit classes
  32. // Classes declared in this file
  33. //CObject
  34. //CCmdTarget;
  35. //CWnd
  36. //CView
  37. //CCtrlView
  38. class CListView;// list control view
  39. class CTreeView;// tree control view
  40. #undef AFX_DATA
  41. #define AFX_DATA AFX_CORE_DATA
  42. /////////////////////////////////////////////////////////////////////////////
  43. // CListView
  44. class CListView : public CCtrlView
  45. {
  46. DECLARE_DYNCREATE(CListView)
  47. // Construction
  48. public:
  49. CListView();
  50. // Attributes
  51. public:
  52. CListCtrl& GetListCtrl() const;
  53. // Overridables
  54. virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);
  55. protected:
  56. void RemoveImageList(int nImageList);
  57. virtual BOOL OnChildNotify(UINT, WPARAM, LPARAM, LRESULT*);
  58. public:
  59. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  60. //{{AFX_MSG(CListView)
  61. afx_msg void OnNcDestroy();
  62. //}}AFX_MSG
  63. DECLARE_MESSAGE_MAP()
  64. };
  65. /////////////////////////////////////////////////////////////////////////////
  66. // CTreeView
  67. class CTreeView : public CCtrlView
  68. {
  69. DECLARE_DYNCREATE(CTreeView)
  70. // Construction
  71. public:
  72. CTreeView();
  73. // Attributes
  74. public:
  75. CTreeCtrl& GetTreeCtrl() const;
  76. protected:
  77. void RemoveImageList(int nImageList);
  78. public:
  79. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  80. //{{AFX_MSG(CTreeView)
  81. afx_msg void OnDestroy();
  82. //}}AFX_MSG
  83. DECLARE_MESSAGE_MAP()
  84. };
  85. /////////////////////////////////////////////////////////////////////////////
  86. // Inline function declarations
  87. #ifdef _AFX_PACKING
  88. #pragma pack(pop)
  89. #endif
  90. #ifdef _AFX_ENABLE_INLINES
  91. #define _AFXCVIEW_INLINE AFX_INLINE
  92. #include <afxcview.inl>
  93. #endif
  94. #undef AFX_DATA
  95. #define AFX_DATA
  96. #ifdef _AFX_MINREBUILD
  97. #pragma component(minrebuild, on)
  98. #endif
  99. #ifndef _AFX_FULLTYPEINFO
  100. #pragma component(mintypeinfo, off)
  101. #endif
  102. #endif //__AFXCVIEW_H__
  103. /////////////////////////////////////////////////////////////////////////////