summaryrefslogtreecommitdiffstats
path: root/private/oleutest/simpcntr/site.h
diff options
context:
space:
mode:
authorAdam <you@example.com>2020-05-17 05:51:50 +0200
committerAdam <you@example.com>2020-05-17 05:51:50 +0200
commite611b132f9b8abe35b362e5870b74bce94a1e58e (patch)
treea5781d2ec0e085eeca33cf350cf878f2efea6fe5 /private/oleutest/simpcntr/site.h
downloadNT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.gz
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.bz2
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.lz
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.xz
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.zst
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.zip
Diffstat (limited to 'private/oleutest/simpcntr/site.h')
-rw-r--r--private/oleutest/simpcntr/site.h53
1 files changed, 53 insertions, 0 deletions
diff --git a/private/oleutest/simpcntr/site.h b/private/oleutest/simpcntr/site.h
new file mode 100644
index 000000000..ada86bcae
--- /dev/null
+++ b/private/oleutest/simpcntr/site.h
@@ -0,0 +1,53 @@
+//**********************************************************************
+// 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