Source code of Windows XP (NT5)
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

// srvritem.h : interface of the CPBSrvrItem class
//
class CPBSrvrItem : public COleServerItem
{
DECLARE_DYNAMIC(CPBSrvrItem)
// Constructors
public:
CPBSrvrItem(CPBDoc* pContainerDoc, CBitmapObj* pBM = NULL);
// Attributes
CPBDoc* GetDocument() const { return (CPBDoc*)COleServerItem::GetDocument(); }
// Implementation
public:
CBitmapObj* m_pBitmapObj;
~CPBSrvrItem();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
virtual BOOL OnDraw(CDC* pDC, CSize& rSize);
virtual BOOL OnGetExtent( DVASPECT dwDrawAspect, CSize& rSize );
virtual BOOL OnSetExtent( DVASPECT nDrawAspect, const CSize& size );
virtual void OnOpen( void );
virtual void OnShow( void );
virtual void OnHide( void );
virtual BOOL OnRenderGlobalData( LPFORMATETC lpFormatEtc, HGLOBAL* phGlobal );
virtual BOOL OnRenderFileData( LPFORMATETC lpFormatEtc, CFile* pFile );
virtual COleDataSource* OnGetClipboardData( BOOL bIncludeLink,
CPoint* pptOffset, CSize *pSize );
protected:
virtual void Serialize(CArchive& ar); // overridden for document i/o
};
/***************************************************************************/