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.

53 lines
1.3 KiB

  1. //**********************************************************************
  2. // File name: SITE.H
  3. //
  4. // Definition of CSimpleSite
  5. //
  6. // Copyright (c) 1992 - 1993 Microsoft Corporation. All rights reserved.
  7. //**********************************************************************
  8. #if !defined( _SITE_H_ )
  9. #define _SITE_H_
  10. #include <ole2.h>
  11. #include "ias.h"
  12. #include "ioips.h"
  13. #include "iocs.h"
  14. class CSimpleDoc;
  15. class CSimpleSite : public IUnknown
  16. {
  17. public:
  18. int m_nCount;
  19. DWORD m_dwConnection;
  20. LPOLEOBJECT m_lpOleObject;
  21. LPOLEINPLACEOBJECT m_lpInPlaceObject;
  22. HWND m_hwndIPObj;
  23. DWORD m_dwDrawAspect;
  24. SIZEL m_sizel;
  25. BOOL m_fInPlaceActive;
  26. BOOL m_fObjectOpen;
  27. LPSTORAGE m_lpObjStorage;
  28. CAdviseSink m_AdviseSink;
  29. COleInPlaceSite m_OleInPlaceSite;
  30. COleClientSite m_OleClientSite;
  31. CSimpleDoc FAR * m_lpDoc;
  32. // IUnknown Interfaces
  33. STDMETHODIMP QueryInterface(REFIID riid, LPVOID FAR* ppvObj);
  34. STDMETHODIMP_(ULONG) AddRef();
  35. STDMETHODIMP_(ULONG) Release();
  36. void InitObject(BOOL fCreateNew);
  37. static CSimpleSite FAR * Create(CSimpleDoc FAR *lpDoc);
  38. CSimpleSite(CSimpleDoc FAR *lpDoc);
  39. ~CSimpleSite();
  40. void PaintObj(HDC hDC);
  41. void GetObjRect(LPRECT lpRect);
  42. void CloseOleObject(void);
  43. void UnloadOleObject(void);
  44. };
  45. #endif
  46.