[!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] // $serveritemheader$ : interface of the $serveritemclass$ class // #pragma once class $serveritemclass$ : public $serveritembaseclass$ { DECLARE_DYNAMIC($serveritemclass$) // Constructors public: $serveritemclass$($docclass$* pContainerDoc); // Attributes $docclass$* GetDocument() const { return reinterpret_cast<$docclass$*>($serveritembaseclass$::GetDocument()); } // Overrides public: virtual BOOL OnDraw(CDC* pDC, CSize& rSize); virtual BOOL OnGetExtent(DVASPECT dwDrawAspect, CSize& rSize); // Implementation public: ~$serveritemclass$(); #ifdef _DEBUG virtual void AssertValid() const; virtual void Dump(CDumpContext& dc) const; #endif protected: virtual void Serialize(CArchive& ar); // overridden for document i/o };