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.

55 lines
1.9 KiB

  1. //**********************************************************************
  2. // File name: IOIPF.H
  3. //
  4. // Definition of COleInPlaceFrame
  5. //
  6. // Copyright (c) 1992 - 1996 Microsoft Corporation. All rights reserved.
  7. //**********************************************************************
  8. #if !defined( _IOIPF_H_ )
  9. #define _IOIPF_H_
  10. // Use the SITE as the frame
  11. class COleSite;
  12. interface COleInPlaceFrame : public IOleInPlaceFrame
  13. {
  14. int m_nCount;
  15. COleSite FAR * m_pSite;
  16. COleInPlaceFrame(COleSite FAR * pSite) {
  17. m_pSite = pSite;
  18. m_nCount = 0;
  19. };
  20. ~COleInPlaceFrame() {
  21. assert(m_nCount == 0);
  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. // *** IOleInPlaceUIWindow methods ***
  29. STDMETHODIMP GetBorder (LPRECT lprectBorder);
  30. STDMETHODIMP RequestBorderSpace (LPCBORDERWIDTHS lpborderwidths);
  31. STDMETHODIMP SetBorderSpace (LPCBORDERWIDTHS lpborderwidths);
  32. //@@WTK WIN32, UNICODE
  33. //STDMETHODIMP SetActiveObject (LPOLEINPLACEACTIVEOBJECT lpActiveObject,LPCSTR lpszObjName);
  34. STDMETHODIMP SetActiveObject (LPOLEINPLACEACTIVEOBJECT lpActiveObject,LPCOLESTR lpszObjName);
  35. // *** IOleInPlaceFrame methods ***
  36. STDMETHODIMP InsertMenus (HMENU hmenuShared, LPOLEMENUGROUPWIDTHS lpMenuWidths);
  37. STDMETHODIMP SetMenu (HMENU hmenuShared, HOLEMENU holemenu, HWND hwndActiveObject);
  38. STDMETHODIMP RemoveMenus (HMENU hmenuShared);
  39. //@@WTK WIN32, UNICODE
  40. //STDMETHODIMP SetStatusText (LPCSTR lpszStatusText);
  41. STDMETHODIMP SetStatusText (LPCOLESTR lpszStatusText);
  42. STDMETHODIMP EnableModeless (BOOL fEnable);
  43. STDMETHODIMP TranslateAccelerator (LPMSG lpmsg, WORD wID);
  44. };
  45. #endif