windows-nt/Source/XPSP1/NT/com/oleutest/simpcntr/site.h
2020-09-26 16:20:57 +08:00

54 lines
1.3 KiB
C++
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//**********************************************************************
// File name: SITE.H
//
// Definition of CSimpleSite
//
// Copyright (c) 1992 - 1993 Microsoft Corporation. All rights reserved.
//**********************************************************************
#if !defined( _SITE_H_ )
#define _SITE_H_
#include <ole2.h>
#include "ias.h"
#include "ioips.h"
#include "iocs.h"
class CSimpleDoc;
class CSimpleSite : public IUnknown
{
public:
int m_nCount;
DWORD m_dwConnection;
LPOLEOBJECT m_lpOleObject;
LPOLEINPLACEOBJECT m_lpInPlaceObject;
HWND m_hwndIPObj;
DWORD m_dwDrawAspect;
SIZEL m_sizel;
BOOL m_fInPlaceActive;
BOOL m_fObjectOpen;
LPSTORAGE m_lpObjStorage;
CAdviseSink m_AdviseSink;
COleInPlaceSite m_OleInPlaceSite;
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