// SrvrItem.hpp : interface of the CMFCApplicationSrvrItem class // #pragma once class CMFCApplicationSrvrItem : public COleServerItem { DECLARE_DYNAMIC(CMFCApplicationSrvrItem) // Constructors public: CMFCApplicationSrvrItem(CMFCApplicationDoc* pContainerDoc); // Attributes CMFCApplicationDoc* GetDocument() const { return reinterpret_cast(COleServerItem::GetDocument()); } // Overrides public: virtual BOOL OnDraw(CDC* pDC, CSize& rSize); virtual BOOL OnGetExtent(DVASPECT dwDrawAspect, CSize& rSize); // Implementation public: ~CMFCApplicationSrvrItem(); #ifdef _DEBUG virtual void AssertValid() const; virtual void Dump(CDumpContext& dc) const; #endif protected: virtual void Serialize(CArchive& ar); // overridden for document i/o };