home *** CD-ROM | disk | FTP | other *** search
/ Using Visual C++ 4 (Special Edition) / Using_Visual_C_4_Special_Edition_QUE_1996.iso / ch08 / oserver / srvritem.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-09-22  |  912 b   |  37 lines

  1. // SrvrItem.h : interface of the COServerSrvrItem class
  2. //
  3.  
  4. class COServerSrvrItem : public COleServerItem
  5. {
  6.     DECLARE_DYNAMIC(COServerSrvrItem)
  7.  
  8. // Constructors
  9. public:
  10.     COServerSrvrItem(COServerDoc* pContainerDoc);
  11.  
  12. // Attributes
  13.     COServerDoc* GetDocument() const
  14.         { return (COServerDoc*)COleServerItem::GetDocument(); }
  15.  
  16. // Overrides
  17.     // ClassWizard generated virtual function overrides
  18.     //{{AFX_VIRTUAL(COServerSrvrItem)
  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.     ~COServerSrvrItem();
  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.