// This is a part of the Microsoft Foundation Classes C++ library. // Copyright (C) 1992-1995 Microsoft Corporation // All rights reserved. // // This source code is only intended as a supplement to the // Microsoft Foundation Classes Reference and related // electronic documentation provided with the library. // See these sources for detailed information regarding the // Microsoft Foundation Classes product. #ifndef __AFXCVIEW_H__ #define __AFXCVIEW_H__ #ifdef _AFX_NO_AFXCMN_SUPPORT #error Windows common control classes not supported in this library variant. #endif #ifndef __AFXWIN_H__ #include #endif #ifndef __AFXCMN_H__ #include #endif #ifdef _AFX_MINREBUILD #pragma component(minrebuild, off) #endif #ifndef _AFX_FULLTYPEINFO #pragma component(mintypeinfo, on) #endif #ifdef _AFX_PACKING #pragma pack(push, _AFX_PACKING) #endif ///////////////////////////////////////////////////////////////////////////// // AFXRICH - MFC RichEdit classes // Classes declared in this file //CObject //CCmdTarget; //CWnd //CView //CCtrlView class CListView;// list control view class CTreeView;// tree control view #undef AFX_DATA #define AFX_DATA AFX_CORE_DATA ///////////////////////////////////////////////////////////////////////////// // CListView class CListView : public CCtrlView { DECLARE_DYNCREATE(CListView) // Construction public: CListView(); // Attributes public: CListCtrl& GetListCtrl() const; // Overridables virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct); protected: void RemoveImageList(int nImageList); virtual BOOL OnChildNotify(UINT, WPARAM, LPARAM, LRESULT*); public: virtual BOOL PreCreateWindow(CREATESTRUCT& cs); //{{AFX_MSG(CListView) afx_msg void OnNcDestroy(); //}}AFX_MSG DECLARE_MESSAGE_MAP() }; ///////////////////////////////////////////////////////////////////////////// // CTreeView class CTreeView : public CCtrlView { DECLARE_DYNCREATE(CTreeView) // Construction public: CTreeView(); // Attributes public: CTreeCtrl& GetTreeCtrl() const; protected: void RemoveImageList(int nImageList); public: virtual BOOL PreCreateWindow(CREATESTRUCT& cs); //{{AFX_MSG(CTreeView) afx_msg void OnDestroy(); //}}AFX_MSG DECLARE_MESSAGE_MAP() }; ///////////////////////////////////////////////////////////////////////////// // Inline function declarations #ifdef _AFX_PACKING #pragma pack(pop) #endif #ifdef _AFX_ENABLE_INLINES #define _AFXCVIEW_INLINE inline #include #endif #undef AFX_DATA #define AFX_DATA #ifdef _AFX_MINREBUILD #pragma component(minrebuild, on) #endif #ifndef _AFX_FULLTYPEINFO #pragma component(mintypeinfo, off) #endif #endif //__AFXCVIEW_H__ /////////////////////////////////////////////////////////////////////////////