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.

47 lines
1.2 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 "iocs.h"
  13. class CSimpleDoc;
  14. class CSimpleSite : public IUnknown
  15. {
  16. public:
  17. int m_nCount;
  18. LPOLEOBJECT m_lpOleObject;
  19. DWORD m_dwDrawAspect;
  20. SIZEL m_sizel;
  21. BOOL m_fObjectOpen;
  22. LPSTORAGE m_lpObjStorage;
  23. CAdviseSink m_AdviseSink;
  24. COleClientSite m_OleClientSite;
  25. CSimpleDoc FAR * m_lpDoc;
  26. // IUnknown Interfaces
  27. STDMETHODIMP QueryInterface(REFIID riid, LPVOID FAR* ppvObj);
  28. STDMETHODIMP_(ULONG) AddRef();
  29. STDMETHODIMP_(ULONG) Release();
  30. HRESULT InitObject(BOOL fCreateNew);
  31. static CSimpleSite FAR * Create(CSimpleDoc FAR *lpDoc);
  32. CSimpleSite(CSimpleDoc FAR *lpDoc);
  33. ~CSimpleSite();
  34. void PaintObj(HDC hDC);
  35. void GetObjRect(LPRECT lpRect);
  36. void CloseOleObject(void);
  37. void UnloadOleObject(void);
  38. };
  39. #endif // _SITE_H_