home *** CD-ROM | disk | FTP | other *** search
/ ActiveX Programming Unleashed CD / AXU.iso / source / chap18 / doserver / srvritem.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-08-14  |  1008 b   |  39 lines

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