home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / mfc / ole / bindscrb / scribitm.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-03-27  |  1.3 KB  |  46 lines

  1. // scribitm.h : interface of the CScribItem class
  2. //
  3. // This is a part of the Microsoft Foundation Classes C++ library.
  4. // Copyright (C) 1992-1998 Microsoft Corporation
  5. // All rights reserved.
  6. //
  7. // This source code is only intended as a supplement to the
  8. // Microsoft Foundation Classes Reference and related
  9. // electronic documentation provided with the library.
  10. // See these sources for detailed information regarding the
  11. // Microsoft Foundation Classes product.
  12.  
  13. class CScribItem : public CDocObjectServerItem
  14. {
  15.     DECLARE_DYNAMIC(CScribItem)
  16.  
  17. // Constructors
  18. public:
  19.     CScribItem(CScribDoc* pContainerDoc);
  20.  
  21. // Attributes
  22.     CScribDoc* GetDocument() const
  23.         { return (CScribDoc*)CDocObjectServerItem::GetDocument(); }
  24.  
  25. // Overrides
  26.     // ClassWizard generated virtual function overrides
  27.     //{{AFX_VIRTUAL(CScribItem)
  28.     public:
  29.     virtual BOOL OnDraw(CDC* pDC, CSize& rSize);
  30.     virtual BOOL OnGetExtent(DVASPECT dwDrawAspect, CSize& rSize);
  31.     //}}AFX_VIRTUAL
  32.  
  33. // Implementation
  34. public:
  35.     ~CScribItem();
  36. #ifdef _DEBUG
  37.     virtual void AssertValid() const;
  38.     virtual void Dump(CDumpContext& dc) const;
  39. #endif
  40.  
  41. protected:
  42.     virtual void Serialize(CArchive& ar);   // overridden for document i/o
  43. };
  44.  
  45. /////////////////////////////////////////////////////////////////////////////
  46.