source: trunk/MFCtooling/TestProg/SrvrItem.h @ 142

Last change on this file since 142 was 32, checked in by sherbold, 14 years ago
File size: 767 bytes
Line 
1// SrvrItem.h : interface of the CTestProgSrvrItem class
2//
3
4#pragma once
5
6class CTestProgSrvrItem : public COleServerItem
7{
8        DECLARE_DYNAMIC(CTestProgSrvrItem)
9
10// Constructors
11public:
12        CTestProgSrvrItem(CTestProgDoc* pContainerDoc);
13
14// Attributes
15        CTestProgDoc* GetDocument() const
16                { return reinterpret_cast<CTestProgDoc*>(COleServerItem::GetDocument()); }
17
18// Overrides
19        public:
20        virtual BOOL OnDraw(CDC* pDC, CSize& rSize);
21        virtual BOOL OnGetExtent(DVASPECT dwDrawAspect, CSize& rSize);
22
23// Implementation
24public:
25        ~CTestProgSrvrItem();
26#ifdef _DEBUG
27        virtual void AssertValid() const;
28        virtual void Dump(CDumpContext& dc) const;
29#endif
30
31protected:
32        virtual void Serialize(CArchive& ar);   // overridden for document i/o
33};
34
Note: See TracBrowser for help on using the repository browser.