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. // File name: HLP_IOPS.HXX
  3. //
  4. // Definition of COleInPlaceSite
  5. //
  6. // Copyright (c) 1992 - 1993 Microsoft Corporation. All rights reserved.
  7. //**********************************************************************
  8. #if !defined( _HLP_IOPS_HXX_ )
  9. #define _HLP_IOPS_HXX_
  10. class CSimpleSite;
  11. interface COleInPlaceSite : public IOleInPlaceSite
  12. {
  13. CSimpleSite FAR * m_pSite;
  14. COleInPlaceSite(CSimpleSite FAR *pSite)
  15. {
  16. OutputDebugString(TEXT("In IOIPS's constructor\r\n"));
  17. m_pSite = pSite;
  18. };
  19. ~COleInPlaceSite()
  20. {
  21. OutputDebugString(TEXT("In IOIPS;s destructor\r\n"));
  22. };
  23. STDMETHODIMP QueryInterface (REFIID riid, LPVOID FAR* ppv);
  24. STDMETHODIMP_(ULONG) AddRef ();
  25. STDMETHODIMP_(ULONG) Release ();
  26. STDMETHODIMP GetWindow (HWND FAR* lphwnd);
  27. STDMETHODIMP ContextSensitiveHelp (BOOL fEnterMode);
  28. // *** IOleInPlaceSite methods ***
  29. STDMETHODIMP CanInPlaceActivate ();
  30. STDMETHODIMP OnInPlaceActivate ();
  31. STDMETHODIMP OnUIActivate ();
  32. STDMETHODIMP GetWindowContext (LPOLEINPLACEFRAME FAR* lplpFrame,
  33. LPOLEINPLACEUIWINDOW FAR* lplpDoc,
  34. LPRECT lprcPosRect,
  35. LPRECT lprcClipRect,
  36. LPOLEINPLACEFRAMEINFO lpFrameInfo);
  37. STDMETHODIMP Scroll (SIZE scrollExtent);
  38. STDMETHODIMP OnUIDeactivate (BOOL fUndoable);
  39. STDMETHODIMP OnInPlaceDeactivate ();
  40. STDMETHODIMP DiscardUndoState ();
  41. STDMETHODIMP DeactivateAndUndo ();
  42. STDMETHODIMP OnPosRectChange (LPCRECT lprcPosRect);
  43. };
  44. #endif
  45.