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.

54 lines
1.7 KiB

  1. //*********************************************************************
  2. //* Microsoft Windows **
  3. //* Copyright(c) Microsoft Corp., 1999 **
  4. //*********************************************************************
  5. //
  6. // IOIPSITE.H - Implements IOleClientSite for the WebOC
  7. //
  8. // HISTORY:
  9. //
  10. // 1/27/99 a-jaswed Created.
  11. #ifndef _IOIPSITE_H_
  12. #define _IOIPSITE_H_
  13. #include <objbase.h>
  14. #include <oleidl.h>
  15. class COleSite;
  16. interface COleInPlaceSite : public IOleInPlaceSite
  17. {
  18. public:
  19. COleInPlaceSite(COleSite* pSite);
  20. ~COleInPlaceSite();
  21. STDMETHODIMP QueryInterface (REFIID riid, LPVOID* ppv);
  22. STDMETHODIMP_(ULONG) AddRef ();
  23. STDMETHODIMP_(ULONG) Release ();
  24. STDMETHODIMP GetWindow (HWND* lphwnd);
  25. STDMETHODIMP ContextSensitiveHelp (BOOL fEnterMode);
  26. // *** IOleInPlaceSite methods ***
  27. STDMETHODIMP CanInPlaceActivate ();
  28. STDMETHODIMP OnInPlaceActivate ();
  29. STDMETHODIMP OnUIActivate ();
  30. STDMETHODIMP GetWindowContext (LPOLEINPLACEFRAME* lplpFrame,
  31. LPOLEINPLACEUIWINDOW* lplpDoc,
  32. LPRECT lprcPosRect,
  33. LPRECT lprcClipRect,
  34. LPOLEINPLACEFRAMEINFO lpFrameInfo);
  35. STDMETHODIMP Scroll (SIZE scrollExtent);
  36. STDMETHODIMP OnUIDeactivate (BOOL fUndoable);
  37. STDMETHODIMP OnInPlaceDeactivate ();
  38. STDMETHODIMP DiscardUndoState ();
  39. STDMETHODIMP DeactivateAndUndo ();
  40. STDMETHODIMP OnPosRectChange (LPCRECT lprcPosRect);
  41. private:
  42. int m_nCount;
  43. COleSite* m_pOleSite;
  44. };
  45. #endif //_IOIPSITE_H_