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.

52 lines
1.6 KiB

  1. //**********************************************************************
  2. // File name: IOIPS.H
  3. //
  4. // Definition of COleInPlaceSite
  5. //
  6. // Copyright (c) 1992 - 1996 Microsoft Corporation. All rights reserved.
  7. //**********************************************************************
  8. #if !defined( _IOIPS_H_ )
  9. #define _IOIPS_H_
  10. class COleSite;
  11. interface COleInPlaceSite : public IOleInPlaceSite
  12. {
  13. int m_nCount;
  14. COleSite FAR * m_pSite;
  15. COleInPlaceSite(COleSite FAR *pSite) {
  16. m_pSite = pSite;
  17. m_nCount = 0;
  18. };
  19. ~COleInPlaceSite() {
  20. assert(m_nCount == 0);
  21. };
  22. STDMETHODIMP QueryInterface (REFIID riid, LPVOID FAR* ppv);
  23. STDMETHODIMP_(ULONG) AddRef ();
  24. STDMETHODIMP_(ULONG) Release ();
  25. STDMETHODIMP GetWindow (HWND FAR* lphwnd);
  26. STDMETHODIMP ContextSensitiveHelp (BOOL fEnterMode);
  27. // *** IOleInPlaceSite methods ***
  28. STDMETHODIMP CanInPlaceActivate ();
  29. STDMETHODIMP OnInPlaceActivate ();
  30. STDMETHODIMP OnUIActivate ();
  31. STDMETHODIMP GetWindowContext (LPOLEINPLACEFRAME FAR* lplpFrame,
  32. LPOLEINPLACEUIWINDOW FAR* lplpDoc,
  33. LPRECT lprcPosRect,
  34. LPRECT lprcClipRect,
  35. LPOLEINPLACEFRAMEINFO lpFrameInfo);
  36. STDMETHODIMP Scroll (SIZE scrollExtent);
  37. STDMETHODIMP OnUIDeactivate (BOOL fUndoable);
  38. STDMETHODIMP OnInPlaceDeactivate ();
  39. STDMETHODIMP DiscardUndoState ();
  40. STDMETHODIMP DeactivateAndUndo ();
  41. STDMETHODIMP OnPosRectChange (LPCRECT lprcPosRect);
  42. };
  43. #endif