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.

44 lines
1.3 KiB

  1. // srvritem.h : interface of the CPBSrvrItem class
  2. //
  3. class CPBSrvrItem : public COleServerItem
  4. {
  5. DECLARE_DYNAMIC(CPBSrvrItem)
  6. // Constructors
  7. public:
  8. CPBSrvrItem(CPBDoc* pContainerDoc, CBitmapObj* pBM = NULL);
  9. // Attributes
  10. CPBDoc* GetDocument() const { return (CPBDoc*)COleServerItem::GetDocument(); }
  11. // Implementation
  12. public:
  13. CBitmapObj* m_pBitmapObj;
  14. ~CPBSrvrItem();
  15. #ifdef _DEBUG
  16. virtual void AssertValid() const;
  17. virtual void Dump(CDumpContext& dc) const;
  18. #endif
  19. virtual BOOL OnDraw(CDC* pDC, CSize& rSize);
  20. virtual BOOL OnGetExtent( DVASPECT dwDrawAspect, CSize& rSize );
  21. virtual BOOL OnSetExtent( DVASPECT nDrawAspect, const CSize& size );
  22. virtual void OnOpen( void );
  23. virtual void OnShow( void );
  24. virtual void OnHide( void );
  25. virtual BOOL OnRenderGlobalData( LPFORMATETC lpFormatEtc, HGLOBAL* phGlobal );
  26. virtual BOOL OnRenderFileData( LPFORMATETC lpFormatEtc, CFile* pFile );
  27. virtual COleDataSource* OnGetClipboardData( BOOL bIncludeLink,
  28. CPoint* pptOffset, CSize *pSize );
  29. protected:
  30. virtual void Serialize(CArchive& ar); // overridden for document i/o
  31. };
  32. /***************************************************************************/