home *** CD-ROM | disk | FTP | other *** search
/ Mastering Microsoft Visual C++ 4 (2nd Edition) / VisualC4.ISO / servdemo / srvritem.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-09-30  |  951 b   |  37 lines

  1. // SrvrItem.h : interface of the CServDemoSrvrItem class
  2. //
  3.  
  4. class CServDemoSrvrItem : public COleServerItem
  5. {
  6.    DECLARE_DYNAMIC(CServDemoSrvrItem)
  7.  
  8. // Constructors
  9. public:
  10.    CServDemoSrvrItem(CServDemoDoc* pContainerDoc);
  11.  
  12. // Attributes
  13.    CServDemoDoc* GetDocument() const
  14.       { return (CServDemoDoc*)COleServerItem::GetDocument(); }
  15.  
  16. // Overrides
  17.    // ClassWizard generated virtual function overrides
  18.    //{{AFX_VIRTUAL(CServDemoSrvrItem)
  19.    public:
  20.    virtual BOOL OnDraw(CDC* pDC, CSize& rSize);
  21.    virtual BOOL OnGetExtent(DVASPECT dwDrawAspect, CSize& rSize);
  22.    //}}AFX_VIRTUAL
  23.  
  24. // Implementation
  25. public:
  26.    ~CServDemoSrvrItem();
  27. #ifdef _DEBUG
  28.    virtual void AssertValid() const;
  29.    virtual void Dump(CDumpContext& dc) const;
  30. #endif
  31.  
  32. protected:
  33.    virtual void Serialize(CArchive& ar);   // overridden for document i/o
  34. };
  35.  
  36. /////////////////////////////////////////////////////////////////////////////
  37.