home *** CD-ROM | disk | FTP | other *** search
/ ActiveX Programming Unleashed CD / AXU.iso / source / chap04 / lst42 / srvritem.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-09-26  |  894 b   |  37 lines

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