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.7 KiB

  1. //**********************************************************************
  2. // File name: HLP_IOPF.HXX
  3. //
  4. // Definition of COleInPlaceFrame
  5. //
  6. // Copyright (c) 1992 - 1993 Microsoft Corporation. All rights reserved.
  7. //**********************************************************************
  8. #if !defined( _HLP_IOPF_HXX_ )
  9. #define _HLP_IOPF_HXX_
  10. class CSimpleApp;
  11. interface COleInPlaceFrame : public IOleInPlaceFrame
  12. {
  13. CSimpleApp FAR * m_pApp;
  14. COleInPlaceFrame(CSimpleApp FAR * pApp)
  15. {
  16. OutputDebugString(TEXT("In IOIPF's constructor\r\n"));
  17. m_pApp = pApp;
  18. };
  19. ~COleInPlaceFrame()
  20. {
  21. OutputDebugString(TEXT("In IOIPFS'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. // *** IOleInPlaceUIWindow methods ***
  29. STDMETHODIMP GetBorder (LPRECT lprectBorder);
  30. STDMETHODIMP RequestBorderSpace (LPCBORDERWIDTHS lpborderwidths);
  31. STDMETHODIMP SetBorderSpace (LPCBORDERWIDTHS lpborderwidths);
  32. STDMETHODIMP SetActiveObject (LPOLEINPLACEACTIVEOBJECT lpActiveObject,LPCOLESTR lpszObjName);
  33. // *** IOleInPlaceFrame methods ***
  34. STDMETHODIMP InsertMenus (HMENU hmenuShared, LPOLEMENUGROUPWIDTHS lpMenuWidths);
  35. STDMETHODIMP SetMenu (HMENU hmenuShared, HOLEMENU holemenu, HWND hwndActiveObject);
  36. STDMETHODIMP RemoveMenus (HMENU hmenuShared);
  37. STDMETHODIMP SetStatusText (LPCOLESTR lpszStatusText);
  38. STDMETHODIMP EnableModeless (BOOL fEnable);
  39. STDMETHODIMP TranslateAccelerator (LPMSG lpmsg, WORD wID);
  40. };
  41. #endif
  42.