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

  1. // srvritem.h : interface of the CWordPadSrvrItem 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 CEmbeddedItem : public COleServerItem
  17. {
  18.     DECLARE_DYNAMIC(CEmbeddedItem)
  19.  
  20. // Constructors
  21. public:
  22.     CEmbeddedItem(CWordPadDoc* pContainerDoc, int nBeg = 0, int nEnd = -1);
  23.  
  24. // Attributes
  25.     int m_nBeg;
  26.     int m_nEnd;
  27.     LPDATAOBJECT m_lpRichDataObj;
  28.     CWordPadDoc* GetDocument() const
  29.         { return (CWordPadDoc*) COleServerItem::GetDocument(); }
  30.     CWordPadView* GetView() const;
  31.  
  32. // Implementation
  33. public:
  34.     BOOL OnDrawEx(CDC* pDC, CSize& rSize, BOOL bOutput);
  35.     virtual BOOL OnDraw(CDC* pDC, CSize& rSize);
  36.     virtual BOOL OnGetExtent(DVASPECT dwDrawAspect, CSize& rSize);
  37.  
  38. protected:
  39.     virtual void Serialize(CArchive& ar);   // overridden for document i/o
  40. };
  41.  
  42.  
  43. /////////////////////////////////////////////////////////////////////////////
  44.