SITE.H
资源名称:MSDN_VC98.zip [点击查看]
上传用户:bangxh
上传日期:2007-01-31
资源大小:42235k
文件大小:1k
源码类别:
Windows编程
开发平台:
Visual C++
- //**********************************************************************
- // File name: SITE.H
- //
- // Definition of CSimpleSite
- //
- // Copyright (c) 1992 - 1997 Microsoft Corporation. All rights reserved.
- //**********************************************************************
- #if !defined( _SITE_H_ )
- #define _SITE_H_
- #include <ole2.h>
- #include "ias.h"
- #include "iocs.h"
- class CSimpleDoc;
- class CSimpleSite : public IUnknown
- {
- public:
- int m_nCount;
- LPOLEOBJECT m_lpOleObject;
- DWORD m_dwDrawAspect;
- SIZEL m_sizel;
- BOOL m_fObjectOpen;
- LPSTORAGE m_lpObjStorage;
- CAdviseSink m_AdviseSink;
- COleClientSite m_OleClientSite;
- CSimpleDoc FAR * m_lpDoc;
- // IUnknown Interfaces
- STDMETHODIMP QueryInterface(REFIID riid, LPVOID FAR* ppvObj);
- STDMETHODIMP_(ULONG) AddRef();
- STDMETHODIMP_(ULONG) Release();
- void InitObject(BOOL fCreateNew);
- static CSimpleSite FAR * Create(CSimpleDoc FAR *lpDoc);
- CSimpleSite(CSimpleDoc FAR *lpDoc);
- ~CSimpleSite();
- void PaintObj(HDC hDC);
- void GetObjRect(LPRECT lpRect);
- void CloseOleObject(void);
- void UnloadOleObject(void);
- };
- #endif // _SITE_H_