home *** CD-ROM | disk | FTP | other *** search
/ QBasic & Borland Pascal & C / Delphi5.iso / C / BC_502 / SCRIB7.PAK / SCRIBITM.H < prev    next >
Encoding:
C/C++ Source or Header  |  1997-05-06  |  1.3 KB  |  46 lines

  1. // ScribItm.h : interface of the CScribbleItem class
  2. //
  3. // This is a part of the Microsoft Foundation Classes C++ library.
  4. // Copyright (C) 1992-1995 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 CScribbleItem : public COleServerItem
  14. {
  15.     DECLARE_DYNAMIC(CScribbleItem)
  16.  
  17. // Constructors
  18. public:
  19.     CScribbleItem(CScribbleDoc* pContainerDoc);
  20.  
  21. // Attributes
  22.     CScribbleDoc* GetDocument() const
  23.         { return (CScribbleDoc*)COleServerItem::GetDocument(); }
  24.  
  25. // Overrides
  26.     // ClassWizard generated virtual function overrides
  27.     //{{AFX_VIRTUAL(CScribbleItem)
  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.     ~CScribbleItem();
  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.