[!if RIBBON_TOOLBAR] // This MFC Samples source code demonstrates using MFC Microsoft Office Fluent User Interface // (the "Fluent UI") and is provided only as referential material to supplement the // Microsoft Foundation Classes Reference and related electronic documentation // included with the MFC C++ library software. // License terms to copy, use or distribute the Fluent UI are available separately. // To learn more about our Fluent UI licensing program, please visit // https://go.microsoft.com/fwlink/?LinkId=238214. // // Copyright (C) Microsoft Corporation // All rights reserved. [!endif] // $treeviewheader$ : interface of the $treeviewclass$ class // #pragma once class $docclass$; class $treeviewclass$ : public CTreeView { protected: // create from serialization only $treeviewclass$(); DECLARE_DYNCREATE($treeviewclass$) // Attributes public: $docclass$* GetDocument(); // Operations public: // Overrides public: virtual BOOL PreCreateWindow(CREATESTRUCT& cs); protected: [!if PRINTING] virtual BOOL OnPreparePrinting(CPrintInfo* pInfo); virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo); virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo); virtual void OnDraw(CDC* pDC); [!endif] virtual void OnInitialUpdate(); // called first time after construct // Implementation public: virtual ~$treeviewclass$(); #ifdef _DEBUG virtual void AssertValid() const; virtual void Dump(CDumpContext& dc) const; #endif protected: // Generated message map functions protected: DECLARE_MESSAGE_MAP() }; #ifndef _DEBUG // debug version in $treeviewimpl$ inline $docclass$* $treeviewclass$::GetDocument() { return reinterpret_cast<$docclass$*>(m_pDocument); } #endif