Subversion Repositories Aucun

Rev

Rev 196 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
195 ixe013 1
// BrowserLockDown.cpp : Implementation of CBrowserLockDown
2
 
3
#include "stdafx.h"
4
#include "BrowserLockDown.h"
5
 
6
 
7
// CBrowserLockDown
8
 
9
STDMETHODIMP CBrowserLockDown::ShowContextMenu(ULONG dwID, tagPOINT * ppt, IUnknown * pcmdtReserved, IDispatch * pdispReserved)
10
{
11
    if(GetAsyncKeyState(VK_CONTROL) < 0)
12
        return S_FALSE;
13
 
14
    return S_OK;
15
}
16
 
17
STDMETHODIMP CBrowserLockDown::GetHostInfo(_DOCHOSTUIINFO * pInfo)
18
{
19
    if (pInfo == NULL)
20
        return E_POINTER;
21
 
22
    pInfo->cbSize = sizeof _DOCHOSTUIINFO;
23
    pInfo->dwFlags = 0
24
        //| DOCHOSTUIFLAG_DIALOG 
25
        | DOCHOSTUIFLAG_DISABLE_HELP_MENU
26
        //| DOCHOSTUIFLAG_NO3DBORDER 
27
        //| DOCHOSTUIFLAG_NO3DOUTERBORDER 
28
        //| DOCHOSTUIFLAG_SCROLL_NO 
29
        | DOCHOSTUIFLAG_DISABLE_SCRIPT_INACTIVE
30
        //| DOCHOSTUIFLAG_OPENNEWWIN 
31
        //| DOCHOSTUIFLAG_DISABLE_OFFSCREEN 
32
        | DOCHOSTUIFLAG_FLAT_SCROLLBAR
33
        //| DOCHOSTUIFLAG_DIV_BLOCKDEFAULT 
34
        | DOCHOSTUIFLAG_ACTIVATE_CLIENTHIT_ONLY
35
        //| DOCHOSTUIFLAG_OVERRIDEBEHAVIORFACTORY 
36
        //| DOCHOSTUIFLAG_CODEPAGELINKEDFONTS 
37
        //| DOCHOSTUIFLAG_URL_ENCODING_DISABLE_UTF8 
38
        //| DOCHOSTUIFLAG_URL_ENCODING_ENABLE_UTF8 
39
        //| DOCHOSTUIFLAG_ENABLE_FORMS_AUTOCOMPLETE 
40
        //| DOCHOSTUIFLAG_ENABLE_INPLACE_NAVIGATION 
41
        //| DOCHOSTUIFLAG_IME_ENABLE_RECONVERSION 
42
        //| DOCHOSTUIFLAG_THEME 
43
        | DOCHOSTUIFLAG_NOTHEME
44
        //| DOCHOSTUIFLAG_NOPICS 
45
        ;
46
 
47
    pInfo->dwDoubleClick = DOCHOSTUIDBLCLK_DEFAULT;
48
 
49
    return S_OK;
50
}
51
 
52
STDMETHODIMP CBrowserLockDown::ShowUI(ULONG dwID, IOleInPlaceActiveObject * pActiveObject, IOleCommandTarget * pCommandTarget, IOleInPlaceFrame * pFrame, IOleInPlaceUIWindow * pDoc)
53
{
54
    return S_OK;
55
}
56
 
57
STDMETHODIMP CBrowserLockDown::HideUI()
58
{
59
    return S_OK;
60
}
61
 
62
STDMETHODIMP CBrowserLockDown::UpdateUI()
63
{
64
    return S_OK;
65
}
66
 
67
STDMETHODIMP CBrowserLockDown::EnableModeless(BOOL fEnable)
68
{
69
    return S_OK;
70
}
71
 
72
STDMETHODIMP CBrowserLockDown::OnDocWindowActivate(BOOL fActivate)
73
{
74
    return S_OK;
75
}
76
 
77
STDMETHODIMP CBrowserLockDown::OnFrameWindowActivate(BOOL fActivate)
78
{
79
    return S_OK;
80
}
81
 
82
STDMETHODIMP CBrowserLockDown::ResizeBorder(const RECT * prcBorder, IOleInPlaceUIWindow * pUIWindow, BOOL fRameWindow)
83
{
84
    return S_OK;
85
}
86
 
87
STDMETHODIMP CBrowserLockDown::TranslateAccelerator(MSG * lpmsg, const GUID * pguidCmdGroup, DWORD nCmdID)
88
{
89
    return E_NOTIMPL;
90
}
91
 
92
STDMETHODIMP CBrowserLockDown::GetOptionKeyPath(LPWSTR * pchKey, ULONG dw)
93
{
94
    if (pchKey != NULL)
95
        pchKey = 0;
96
 
97
    return S_FALSE;
98
}
99
 
100
STDMETHODIMP CBrowserLockDown::GetDropTarget(IDropTarget * pDropTarget, IDropTarget * * ppDropTarget)
101
{
102
    return E_NOTIMPL;
103
}
104
 
105
STDMETHODIMP CBrowserLockDown::GetExternal(IDispatch * * ppDispatch)
106
{
107
    if(ppDispatch)
108
        *ppDispatch = 0;
109
 
110
    return E_NOTIMPL;
111
}
112
 
113
STDMETHODIMP CBrowserLockDown::TranslateUrl(ULONG dwTranslate, OLECHAR * pchURLIn, OLECHAR ** ppchURLOut)
114
{
115
    return S_FALSE;
116
}
117
 
118
STDMETHODIMP CBrowserLockDown::FilterDataObject(IDataObject * pDO, IDataObject * * ppDORet)
119
{
120
    return S_FALSE;
121
}