Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
1.3 KiB

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