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.

63 lines
1.5 KiB

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