diff options
author | Adam <you@example.com> | 2020-05-17 05:51:50 +0200 |
---|---|---|
committer | Adam <you@example.com> | 2020-05-17 05:51:50 +0200 |
commit | e611b132f9b8abe35b362e5870b74bce94a1e58e (patch) | |
tree | a5781d2ec0e085eeca33cf350cf878f2efea6fe5 /private/oleutest/simpcntr/ioipf.h | |
download | NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.gz NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.bz2 NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.lz NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.xz NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.zst NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.zip |
Diffstat (limited to 'private/oleutest/simpcntr/ioipf.h')
-rw-r--r-- | private/oleutest/simpcntr/ioipf.h | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/private/oleutest/simpcntr/ioipf.h b/private/oleutest/simpcntr/ioipf.h new file mode 100644 index 000000000..e32edcca5 --- /dev/null +++ b/private/oleutest/simpcntr/ioipf.h @@ -0,0 +1,51 @@ +//********************************************************************** +// File name: IOIPF.H +// +// Definition of COleInPlaceFrame +// +// Copyright (c) 1992 - 1993 Microsoft Corporation. All rights reserved. +//********************************************************************** +#if !defined( _IOIPF_H_ ) +#define _IOIPF_H_ + + +class CSimpleApp; + +interface COleInPlaceFrame : public IOleInPlaceFrame +{ + CSimpleApp FAR * m_pApp; + + COleInPlaceFrame(CSimpleApp FAR * pApp) + { + TestDebugOut(TEXT("In IOIPF's constructor\r\n")); + m_pApp = pApp; + }; + + ~COleInPlaceFrame() + { + TestDebugOut(TEXT("In IOIPFS's destructor\r\n")); + }; + + STDMETHODIMP QueryInterface (REFIID riid, LPVOID FAR* ppv); + STDMETHODIMP_(ULONG) AddRef (); + STDMETHODIMP_(ULONG) Release (); + + STDMETHODIMP GetWindow (HWND FAR* lphwnd); + STDMETHODIMP ContextSensitiveHelp (BOOL fEnterMode); + + // *** IOleInPlaceUIWindow methods *** + STDMETHODIMP GetBorder (LPRECT lprectBorder); + STDMETHODIMP RequestBorderSpace (LPCBORDERWIDTHS lpborderwidths); + STDMETHODIMP SetBorderSpace (LPCBORDERWIDTHS lpborderwidths); + STDMETHODIMP SetActiveObject (LPOLEINPLACEACTIVEOBJECT lpActiveObject,LPCOLESTR lpszObjName); + + // *** IOleInPlaceFrame methods *** + STDMETHODIMP InsertMenus (HMENU hmenuShared, LPOLEMENUGROUPWIDTHS lpMenuWidths); + STDMETHODIMP SetMenu (HMENU hmenuShared, HOLEMENU holemenu, HWND hwndActiveObject); + STDMETHODIMP RemoveMenus (HMENU hmenuShared); + STDMETHODIMP SetStatusText (LPCOLESTR lpszStatusText); + STDMETHODIMP EnableModeless (BOOL fEnable); + STDMETHODIMP TranslateAccelerator (LPMSG lpmsg, WORD wID); +}; + +#endif |