home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / vc98 / mfc / include / afxcview.h < prev    next >
C/C++ Source or Header  |  1998-06-16  |  3KB  |  136 lines

  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.  
  11. #ifndef __AFXCVIEW_H__
  12. #define __AFXCVIEW_H__
  13.  
  14. #ifdef _AFX_NO_AFXCMN_SUPPORT
  15.     #error Windows common control classes not supported in this library variant.
  16. #endif
  17.  
  18. #ifndef __AFXWIN_H__
  19.     #include <afxwin.h>
  20. #endif
  21.  
  22. #ifndef __AFXCMN_H__
  23.     #include <afxcmn.h>
  24. #endif
  25.  
  26. #ifdef _AFX_MINREBUILD
  27. #pragma component(minrebuild, off)
  28. #endif
  29. #ifndef _AFX_FULLTYPEINFO
  30. #pragma component(mintypeinfo, on)
  31. #endif
  32.  
  33. #ifdef _AFX_PACKING
  34. #pragma pack(push, _AFX_PACKING)
  35. #endif
  36.  
  37. /////////////////////////////////////////////////////////////////////////////
  38. // AFXRICH - MFC RichEdit classes
  39.  
  40. // Classes declared in this file
  41.  
  42. //CObject
  43.     //CCmdTarget;
  44.         //CWnd
  45.             //CView
  46.                 //CCtrlView
  47.                     class CListView;// list control view
  48.                     class CTreeView;// tree control view
  49.  
  50. #undef AFX_DATA
  51. #define AFX_DATA AFX_CORE_DATA
  52.  
  53. /////////////////////////////////////////////////////////////////////////////
  54. // CListView
  55.  
  56. class CListView : public CCtrlView
  57. {
  58.     DECLARE_DYNCREATE(CListView)
  59.  
  60. // Construction
  61. public:
  62.     CListView();
  63.  
  64. // Attributes
  65. public:
  66.     CListCtrl& GetListCtrl() const;
  67.  
  68. // Overridables
  69.     virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);
  70.  
  71. protected:
  72.     void RemoveImageList(int nImageList);
  73.     virtual BOOL OnChildNotify(UINT, WPARAM, LPARAM, LRESULT*);
  74.  
  75. public:
  76.     virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  77.  
  78.     //{{AFX_MSG(CListView)
  79.     afx_msg void OnNcDestroy();
  80.     //}}AFX_MSG
  81.     DECLARE_MESSAGE_MAP()
  82. };
  83.  
  84. /////////////////////////////////////////////////////////////////////////////
  85. // CTreeView
  86.  
  87. class CTreeView : public CCtrlView
  88. {
  89.     DECLARE_DYNCREATE(CTreeView)
  90.  
  91. // Construction
  92. public:
  93.     CTreeView();
  94.  
  95. // Attributes
  96. public:
  97.     CTreeCtrl& GetTreeCtrl() const;
  98.  
  99. protected:
  100.     void RemoveImageList(int nImageList);
  101.  
  102. public:
  103.     virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  104.  
  105.     //{{AFX_MSG(CTreeView)
  106.     afx_msg void OnDestroy();
  107.     //}}AFX_MSG
  108.     DECLARE_MESSAGE_MAP()
  109. };
  110.  
  111. /////////////////////////////////////////////////////////////////////////////
  112. // Inline function declarations
  113.  
  114. #ifdef _AFX_PACKING
  115. #pragma pack(pop)
  116. #endif
  117.  
  118. #ifdef _AFX_ENABLE_INLINES
  119. #define _AFXCVIEW_INLINE AFX_INLINE
  120. #include <afxcview.inl>
  121. #endif
  122.  
  123. #undef AFX_DATA
  124. #define AFX_DATA
  125.  
  126. #ifdef _AFX_MINREBUILD
  127. #pragma component(minrebuild, on)
  128. #endif
  129. #ifndef _AFX_FULLTYPEINFO
  130. #pragma component(mintypeinfo, off)
  131. #endif
  132.  
  133. #endif //__AFXCVIEW_H__
  134.  
  135. /////////////////////////////////////////////////////////////////////////////
  136.