forked from Tobbe/CppIEEmbed
-
Notifications
You must be signed in to change notification settings - Fork 2
/
toleinplacesite.cpp
69 lines (56 loc) · 1.44 KB
/
toleinplacesite.cpp
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#include "toleinplacesite.h"
#include <crtdbg.h> // For _ASSERT()
#define NOTIMPLEMENTED _ASSERT(0); return E_NOTIMPL
HRESULT STDMETHODCALLTYPE TOleInPlaceSite::GetWindow(HWND *phwnd)
{
// This has to be implemented
NOTIMPLEMENTED;
}
HRESULT STDMETHODCALLTYPE TOleInPlaceSite::ContextSensitiveHelp(BOOL fEnterMode)
{
return E_NOTIMPL;
}
HRESULT STDMETHODCALLTYPE TOleInPlaceSite::CanInPlaceActivate()
{
return S_OK;
}
HRESULT STDMETHODCALLTYPE TOleInPlaceSite::OnInPlaceActivate()
{
return S_OK;
}
HRESULT STDMETHODCALLTYPE TOleInPlaceSite::OnUIActivate()
{
return S_OK;
}
HRESULT STDMETHODCALLTYPE TOleInPlaceSite::GetWindowContext(
IOleInPlaceFrame **ppFrame, IOleInPlaceUIWindow **ppDoc,
LPRECT lprcPosRect, LPRECT lprcClipRect, LPOLEINPLACEFRAMEINFO info)
{
// This has to be implemented
NOTIMPLEMENTED;
}
HRESULT STDMETHODCALLTYPE TOleInPlaceSite::Scroll(SIZE scrollExtant)
{
return E_NOTIMPL;
}
HRESULT STDMETHODCALLTYPE TOleInPlaceSite::OnUIDeactivate(BOOL fUndoable)
{
return S_OK;
}
HRESULT STDMETHODCALLTYPE TOleInPlaceSite::OnInPlaceDeactivate()
{
return S_OK;
}
HRESULT STDMETHODCALLTYPE TOleInPlaceSite::DiscardUndoState()
{
return E_NOTIMPL;
}
HRESULT STDMETHODCALLTYPE TOleInPlaceSite::DeactivateAndUndo()
{
return E_NOTIMPL;
}
HRESULT STDMETHODCALLTYPE TOleInPlaceSite::OnPosRectChange(LPCRECT lprcPosRect)
{
// This has to be implemented
NOTIMPLEMENTED;
}