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

  1. // cntritem.h : interface of the CWordPadCntrItem 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 CWordPadDoc;
  14. class CWordPadView;
  15.  
  16. class CWordPadCntrItem : public CRichEditCntrItem
  17. {
  18.     DECLARE_SERIAL(CWordPadCntrItem)
  19.  
  20. // Constructors
  21. public:
  22.     CWordPadCntrItem(REOBJECT* preo = NULL, CWordPadDoc* pContainer = NULL);
  23.         // Note: pContainer is allowed to be NULL to enable IMPLEMENT_SERIALIZE.
  24.         //  IMPLEMENT_SERIALIZE requires the class have a constructor with
  25.         //  zero arguments.  Normally, OLE items are constructed with a
  26.         //  non-NULL document pointer.
  27.  
  28. // Attributes
  29. public:
  30.     CWordPadDoc* GetDocument()
  31.         { return (CWordPadDoc*)COleClientItem::GetDocument(); }
  32.     CWordPadView* GetActiveView()
  33.         { return (CWordPadView*)COleClientItem::GetActiveView(); }
  34.  
  35.     // ClassWizard generated virtual function overrides
  36.     //{{AFX_VIRTUAL(CWordPadCntrItem)
  37.     public:
  38.     protected:
  39.     //}}AFX_VIRTUAL
  40.  
  41. // Implementation
  42. public:
  43. #ifdef _DEBUG
  44.     virtual void AssertValid() const;
  45.     virtual void Dump(CDumpContext& dc) const;
  46. #endif
  47. };
  48.  
  49. /////////////////////////////////////////////////////////////////////////////
  50.