forked from Tobbe/CppIEEmbed
-
Notifications
You must be signed in to change notification settings - Fork 2
/
toleinplaceframe.h
40 lines (34 loc) · 1.42 KB
/
toleinplaceframe.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#ifndef _TOLEINPLACEFRAME_H__
#define _TOLEINPLACEFRAME_H__
#include <windows.h>
#include <mshtmhst.h>
class TOleInPlaceFrame : public IOleInPlaceFrame {
public:
// IUnknown
virtual HRESULT STDMETHODCALLTYPE QueryInterface(REFIID riid,
void **ppv) = 0;
virtual ULONG STDMETHODCALLTYPE AddRef() = 0;
virtual ULONG STDMETHODCALLTYPE Release() = 0;
// IOleWindow
virtual HRESULT STDMETHODCALLTYPE GetWindow(HWND *phwnd);
virtual HRESULT STDMETHODCALLTYPE ContextSensitiveHelp(BOOL fEnterMode);
// IOleInPlaceUIWindow
virtual HRESULT STDMETHODCALLTYPE GetBorder(LPRECT lprectBorder);
virtual HRESULT STDMETHODCALLTYPE RequestBorderSpace(
LPCBORDERWIDTHS pborderwidths);
virtual HRESULT STDMETHODCALLTYPE SetBorderSpace(
LPCBORDERWIDTHS pborderwidths);
virtual HRESULT STDMETHODCALLTYPE SetActiveObject(
IOleInPlaceActiveObject *pActiveObject, LPCOLESTR pszObjName);
// IOleInPlaceFrame
virtual HRESULT STDMETHODCALLTYPE InsertMenus(HMENU hmenuShared,
LPOLEMENUGROUPWIDTHS lpMenuWidths);
virtual HRESULT STDMETHODCALLTYPE SetMenu(HMENU hmenuShared,
HOLEMENU holemenu, HWND hwndActiveObject);
virtual HRESULT STDMETHODCALLTYPE RemoveMenus(HMENU hmenuShared);
virtual HRESULT STDMETHODCALLTYPE SetStatusText(LPCOLESTR pszStatusText);
virtual HRESULT STDMETHODCALLTYPE EnableModeless(BOOL fEnable);
virtual HRESULT STDMETHODCALLTYPE TranslateAccelerator(LPMSG lpmsg,
WORD wID);
};
#endif