ReactOS 0.4.17-dev-1190-g4c812f4
oleobject.c File Reference
#include <string.h>
#include "ieframe.h"
#include "htiframe.h"
#include "idispids.h"
#include "mshtmdid.h"
#include "wine/debug.h"
Include dependency graph for oleobject.c:

Go to the source code of this file.

Classes

struct  EnumOLEVERB
 

Functions

 WINE_DEFAULT_DEBUG_CHANNEL (ieframe)
 
HWND WINAPI SHSetParentHwnd (HWND hWnd, HWND hWndParent)
 
static LRESULT resize_window (WebBrowser *This, LONG width, LONG height)
 
static void notify_on_focus (WebBrowser *This, BOOL got_focus)
 
static LRESULT WINAPI shell_embedding_proc (HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
 
static void create_shell_embedding_hwnd (WebBrowser *This)
 
static HRESULT activate_inplace (WebBrowser *This, IOleClientSite *active_site)
 
static HRESULT activate_ui (WebBrowser *This, IOleClientSite *active_site)
 
static HRESULT get_client_disp_property (IOleClientSite *client, DISPID dispid, VARIANT *res)
 
static HRESULT on_offlineconnected_change (WebBrowser *This)
 
static HRESULT on_silent_change (WebBrowser *This)
 
static void release_client_site (WebBrowser *This, BOOL destroy_win)
 
static EnumOLEVERB * impl_from_IEnumOLEVERB (IEnumOLEVERB *iface)
 
static HRESULT WINAPI EnumOLEVERB_QueryInterface (IEnumOLEVERB *iface, REFIID riid, void **ppv)
 
static ULONG WINAPI EnumOLEVERB_AddRef (IEnumOLEVERB *iface)
 
static ULONG WINAPI EnumOLEVERB_Release (IEnumOLEVERB *iface)
 
static HRESULT WINAPI EnumOLEVERB_Next (IEnumOLEVERB *iface, ULONG celt, OLEVERB *rgelt, ULONG *pceltFetched)
 
static HRESULT WINAPI EnumOLEVERB_Skip (IEnumOLEVERB *iface, ULONG celt)
 
static HRESULT WINAPI EnumOLEVERB_Reset (IEnumOLEVERB *iface)
 
static HRESULT WINAPI EnumOLEVERB_Clone (IEnumOLEVERB *iface, IEnumOLEVERB **ppenum)
 
static WebBrowser * impl_from_IOleObject (IOleObject *iface)
 
static HRESULT WINAPI OleObject_QueryInterface (IOleObject *iface, REFIID riid, void **ppv)
 
static ULONG WINAPI OleObject_AddRef (IOleObject *iface)
 
static ULONG WINAPI OleObject_Release (IOleObject *iface)
 
static HRESULT WINAPI OleObject_SetClientSite (IOleObject *iface, LPOLECLIENTSITE pClientSite)
 
static HRESULT WINAPI OleObject_GetClientSite (IOleObject *iface, LPOLECLIENTSITE *ppClientSite)
 
static HRESULT WINAPI OleObject_SetHostNames (IOleObject *iface, LPCOLESTR szContainerApp, LPCOLESTR szContainerObj)
 
static void deactivate_ui (WebBrowser *This)
 
static HRESULT WINAPI OleObject_Close (IOleObject *iface, DWORD dwSaveOption)
 
static HRESULT WINAPI OleObject_SetMoniker (IOleObject *iface, DWORD dwWhichMoniker, IMoniker *pmk)
 
static HRESULT WINAPI OleObject_GetMoniker (IOleObject *iface, DWORD dwAssign, DWORD dwWhichMoniker, LPMONIKER *ppmk)
 
static HRESULT WINAPI OleObject_InitFromData (IOleObject *iface, LPDATAOBJECT pDataObject, BOOL fCreation, DWORD dwReserved)
 
static HRESULT WINAPI OleObject_GetClipboardData (IOleObject *iface, DWORD dwReserved, LPDATAOBJECT *ppDataObject)
 
static HRESULT WINAPI OleObject_DoVerb (IOleObject *iface, LONG iVerb, struct tagMSG *lpmsg, LPOLECLIENTSITE pActiveSite, LONG lindex, HWND hwndParent, LPCRECT lprcPosRect)
 
static HRESULT WINAPI OleObject_EnumVerbs (IOleObject *iface, IEnumOLEVERB **ppEnumOleVerb)
 
static HRESULT WINAPI OleObject_Update (IOleObject *iface)
 
static HRESULT WINAPI OleObject_IsUpToDate (IOleObject *iface)
 
static HRESULT WINAPI OleObject_GetUserClassID (IOleObject *iface, CLSID *pClsid)
 
static HRESULT WINAPI OleObject_GetUserType (IOleObject *iface, DWORD dwFormOfType, LPOLESTR *pszUserType)
 
static HRESULT WINAPI OleObject_SetExtent (IOleObject *iface, DWORD dwDrawAspect, SIZEL *psizel)
 
static HRESULT WINAPI OleObject_GetExtent (IOleObject *iface, DWORD dwDrawAspect, SIZEL *psizel)
 
static HRESULT WINAPI OleObject_Advise (IOleObject *iface, IAdviseSink *pAdvSink, DWORD *pdwConnection)
 
static HRESULT WINAPI OleObject_Unadvise (IOleObject *iface, DWORD dwConnection)
 
static HRESULT WINAPI OleObject_EnumAdvise (IOleObject *iface, IEnumSTATDATA **ppenumAdvise)
 
static HRESULT WINAPI OleObject_GetMiscStatus (IOleObject *iface, DWORD dwAspect, DWORD *pdwStatus)
 
static HRESULT WINAPI OleObject_SetColorScheme (IOleObject *iface, LOGPALETTE *pLogpal)
 
static WebBrowser * impl_from_IOleInPlaceObject (IOleInPlaceObject *iface)
 
static HRESULT WINAPI OleInPlaceObject_QueryInterface (IOleInPlaceObject *iface, REFIID riid, LPVOID *ppobj)
 
static ULONG WINAPI OleInPlaceObject_AddRef (IOleInPlaceObject *iface)
 
static ULONG WINAPI OleInPlaceObject_Release (IOleInPlaceObject *iface)
 
static HRESULT WINAPI OleInPlaceObject_GetWindow (IOleInPlaceObject *iface, HWND *phwnd)
 
static HRESULT WINAPI OleInPlaceObject_ContextSensitiveHelp (IOleInPlaceObject *iface, BOOL fEnterMode)
 
static HRESULT WINAPI OleInPlaceObject_InPlaceDeactivate (IOleInPlaceObject *iface)
 
static HRESULT WINAPI OleInPlaceObject_UIDeactivate (IOleInPlaceObject *iface)
 
static HRESULT WINAPI OleInPlaceObject_SetObjectRects (IOleInPlaceObject *iface, LPCRECT lprcPosRect, LPCRECT lprcClipRect)
 
static HRESULT WINAPI OleInPlaceObject_ReactivateAndUndo (IOleInPlaceObject *iface)
 
static WebBrowser * impl_from_IOleControl (IOleControl *iface)
 
static HRESULT WINAPI OleControl_QueryInterface (IOleControl *iface, REFIID riid, LPVOID *ppobj)
 
static ULONG WINAPI OleControl_AddRef (IOleControl *iface)
 
static ULONG WINAPI OleControl_Release (IOleControl *iface)
 
static HRESULT WINAPI OleControl_GetControlInfo (IOleControl *iface, LPCONTROLINFO pCI)
 
static HRESULT WINAPI OleControl_OnMnemonic (IOleControl *iface, struct tagMSG *pMsg)
 
static HRESULT WINAPI OleControl_OnAmbientPropertyChange (IOleControl *iface, DISPID dispID)
 
static HRESULT WINAPI OleControl_FreezeEvents (IOleControl *iface, BOOL bFreeze)
 
static WebBrowser * impl_from_IOleInPlaceActiveObject (IOleInPlaceActiveObject *iface)
 
static HRESULT WINAPI InPlaceActiveObject_QueryInterface (IOleInPlaceActiveObject *iface, REFIID riid, void **ppv)
 
static ULONG WINAPI InPlaceActiveObject_AddRef (IOleInPlaceActiveObject *iface)
 
static ULONG WINAPI InPlaceActiveObject_Release (IOleInPlaceActiveObject *iface)
 
static HRESULT WINAPI InPlaceActiveObject_GetWindow (IOleInPlaceActiveObject *iface, HWND *phwnd)
 
static HRESULT WINAPI InPlaceActiveObject_ContextSensitiveHelp (IOleInPlaceActiveObject *iface, BOOL fEnterMode)
 
static HRESULT WINAPI InPlaceActiveObject_TranslateAccelerator (IOleInPlaceActiveObject *iface, LPMSG lpmsg)
 
static HRESULT WINAPI InPlaceActiveObject_OnFrameWindowActivate (IOleInPlaceActiveObject *iface, BOOL fActivate)
 
static HRESULT WINAPI InPlaceActiveObject_OnDocWindowActivate (IOleInPlaceActiveObject *iface, BOOL fActivate)
 
static HRESULT WINAPI InPlaceActiveObject_ResizeBorder (IOleInPlaceActiveObject *iface, LPCRECT lprcBorder, IOleInPlaceUIWindow *pUIWindow, BOOL fFrameWindow)
 
static HRESULT WINAPI InPlaceActiveObject_EnableModeless (IOleInPlaceActiveObject *iface, BOOL fEnable)
 
static WebBrowser * impl_from_IOleCommandTarget (IOleCommandTarget *iface)
 
static HRESULT WINAPI WBOleCommandTarget_QueryInterface (IOleCommandTarget *iface, REFIID riid, void **ppv)
 
static ULONG WINAPI WBOleCommandTarget_AddRef (IOleCommandTarget *iface)
 
static ULONG WINAPI WBOleCommandTarget_Release (IOleCommandTarget *iface)
 
static HRESULT WINAPI WBOleCommandTarget_QueryStatus (IOleCommandTarget *iface, const GUID *pguidCmdGroup, ULONG cCmds, OLECMD prgCmds[], OLECMDTEXT *pCmdText)
 
static HRESULT WINAPI WBOleCommandTarget_Exec (IOleCommandTarget *iface, const GUID *pguidCmdGroup, DWORD nCmdID, DWORD nCmdexecopt, VARIANT *pvaIn, VARIANT *pvaOut)
 
void WebBrowser_OleObject_Init (WebBrowser *This)
 
void WebBrowser_OleObject_Destroy (WebBrowser *This)
 

Variables

static ATOM shell_embedding_atom = 0
 
static const IEnumOLEVERBVtbl EnumOLEVERBVtbl
 
static const IOleObjectVtbl OleObjectVtbl
 
static const IOleInPlaceObjectVtbl OleInPlaceObjectVtbl
 
static const IOleControlVtbl OleControlVtbl
 
static const IOleInPlaceActiveObjectVtbl OleInPlaceActiveObjectVtbl
 
static const IOleCommandTargetVtbl OleCommandTargetVtbl
 

Function Documentation

◆ activate_inplace()

static HRESULT activate_inplace ( WebBrowser *  This,
IOleClientSite *  active_site 
)
static

Definition at line 138 of file oleobject.c.

139{
140 HWND parent_hwnd;
142
143 if(This->inplace)
144 return S_OK;
145
146 if(!active_site)
147 return E_INVALIDARG;
148
149 hres = IOleClientSite_QueryInterface(active_site, &IID_IOleInPlaceSite,
150 (void**)&This->inplace);
151 if(FAILED(hres)) {
152 WARN("Could not get IOleInPlaceSite\n");
153 return hres;
154 }
155
156 hres = IOleInPlaceSiteEx_CanInPlaceActivate(This->inplace);
157 if(hres != S_OK) {
158 WARN("CanInPlaceActivate returned: %08lx\n", hres);
159 IOleInPlaceSiteEx_Release(This->inplace);
160 This->inplace = NULL;
161 return E_FAIL;
162 }
163
164 hres = IOleInPlaceSiteEx_GetWindow(This->inplace, &parent_hwnd);
165 if(SUCCEEDED(hres))
166 SHSetParentHwnd(This->shell_embedding_hwnd, parent_hwnd);
167
168 IOleInPlaceSiteEx_OnInPlaceActivate(This->inplace);
169
170 This->frameinfo.cb = sizeof(OLEINPLACEFRAMEINFO);
171 IOleInPlaceSiteEx_GetWindowContext(This->inplace, &This->doc_host.frame, &This->uiwindow,
172 &This->pos_rect, &This->clip_rect,
173 &This->frameinfo);
174
175 SetWindowPos(This->shell_embedding_hwnd, NULL,
176 This->pos_rect.left, This->pos_rect.top,
177 This->pos_rect.right-This->pos_rect.left,
178 This->pos_rect.bottom-This->pos_rect.top,
180
181 if(This->client) {
183
184 IOleClientSite_ShowObject(This->client);
185
186 hres = IOleClientSite_GetContainer(This->client, &container);
187 if(SUCCEEDED(hres)) {
188 if(This->container)
189 IOleContainer_Release(This->container);
190 This->container = container;
191 }
192 }
193
194 if(This->doc_host.frame)
195 IOleInPlaceFrame_GetWindow(This->doc_host.frame, &This->frame_hwnd);
196
197 return S_OK;
198}
#define WARN(fmt,...)
Definition: precomp.h:61
#define E_INVALIDARG
Definition: ddrawi.h:101
#define E_FAIL
Definition: ddrawi.h:102
#define NULL
Definition: types.h:112
#define S_OK
Definition: intsafe.h:52
#define SUCCEEDED(hr)
Definition: intsafe.h:50
#define FAILED(hr)
Definition: intsafe.h:51
HRESULT hres
Definition: protocol.c:432
const GUID IID_IOleInPlaceSite
HWND WINAPI SHSetParentHwnd(HWND hWnd, HWND hWndParent)
Definition: ordinal.c:833
BOOL WINAPI SetWindowPos(_In_ HWND, _In_opt_ HWND, _In_ int, _In_ int, _In_ int, _In_ int, _In_ UINT)
#define SWP_SHOWWINDOW
Definition: winuser.h:1259
#define SWP_NOZORDER
Definition: winuser.h:1258

Referenced by activate_ui(), and OleObject_DoVerb().

◆ activate_ui()

static HRESULT activate_ui ( WebBrowser *  This,
IOleClientSite *  active_site 
)
static

Definition at line 200 of file oleobject.c.

201{
203
204 static const WCHAR wszitem[] = {'i','t','e','m',0};
205
206 if(This->inplace)
207 {
208 if(This->shell_embedding_hwnd)
209 ShowWindow(This->shell_embedding_hwnd, SW_SHOW);
210 return S_OK;
211 }
212
213 hres = activate_inplace(This, active_site);
214 if(FAILED(hres))
215 return hres;
216
217 if(This->ui_activated)
218 return S_OK;
219
220 IOleInPlaceSiteEx_OnUIActivate(This->inplace);
221
222 if(This->doc_host.frame)
223 IOleInPlaceFrame_SetActiveObject(This->doc_host.frame, &This->IOleInPlaceActiveObject_iface, wszitem);
224 if(This->uiwindow)
225 IOleInPlaceUIWindow_SetActiveObject(This->uiwindow, &This->IOleInPlaceActiveObject_iface, wszitem);
226
227 if(This->doc_host.frame)
228 IOleInPlaceFrame_SetMenu(This->doc_host.frame, NULL, NULL, This->shell_embedding_hwnd);
229
230 SetFocus(This->shell_embedding_hwnd);
232
233 activate_document(&This->doc_host);
234
235 This->ui_activated = TRUE;
236
237 return S_OK;
238}
#define TRUE
Definition: types.h:120
void activate_document(DocHost *This)
Definition: dochost.c:606
static HRESULT activate_inplace(WebBrowser *This, IOleClientSite *active_site)
Definition: oleobject.c:138
static void notify_on_focus(WebBrowser *This, BOOL got_focus)
Definition: oleobject.c:52
short WCHAR
Definition: pedump.c:58
BOOL WINAPI ShowWindow(_In_ HWND, _In_ int)
HWND WINAPI SetFocus(_In_opt_ HWND)
#define SW_SHOW
Definition: winuser.h:786

Referenced by OleObject_DoVerb().

◆ create_shell_embedding_hwnd()

static void create_shell_embedding_hwnd ( WebBrowser *  This)
static

Definition at line 97 of file oleobject.c.

98{
99 IOleInPlaceSite *inplace;
100 HWND parent = NULL;
102
103 static const WCHAR wszShellEmbedding[] =
104 {'S','h','e','l','l',' ','E','m','b','e','d','d','i','n','g',0};
105
107 static WNDCLASSEXW wndclass = {
108 sizeof(wndclass),
111 0, 0 /* native uses 8 */, NULL, NULL, NULL,
112 (HBRUSH)(COLOR_WINDOW + 1), NULL,
113 wszShellEmbedding,
114 NULL
115 };
116 wndclass.hInstance = ieframe_instance;
117
118 RegisterClassExW(&wndclass);
119 }
120
121 hres = IOleClientSite_QueryInterface(This->client, &IID_IOleInPlaceSite, (void**)&inplace);
122 if(SUCCEEDED(hres)) {
123 IOleInPlaceSite_GetWindow(inplace, &parent);
124 IOleInPlaceSite_Release(inplace);
125 }
126
127 This->doc_host.frame_hwnd = This->shell_embedding_hwnd = CreateWindowExW(
129 wszShellEmbedding, wszShellEmbedding,
132 0, 0, 0, 0, parent,
134
135 TRACE("parent=%p hwnd=%p\n", parent, This->shell_embedding_hwnd);
136}
r parent
Definition: btrfs.c:3010
HINSTANCE ieframe_instance
Definition: ieframe_main.c:32
static ATOM shell_embedding_atom
Definition: oleobject.c:41
static LRESULT WINAPI shell_embedding_proc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
Definition: oleobject.c:68
#define WS_CHILD
Definition: pedump.c:617
#define WS_MAXIMIZEBOX
Definition: pedump.c:632
#define WS_TABSTOP
Definition: pedump.c:634
#define WS_POPUP
Definition: pedump.c:616
#define WS_CLIPSIBLINGS
Definition: pedump.c:618
#define WS_CLIPCHILDREN
Definition: pedump.c:619
#define COLOR_WINDOW
Definition: winuser.h:929
#define CS_DBLCLKS
Definition: winuser.h:659
HWND WINAPI CreateWindowExW(_In_ DWORD dwExStyle, _In_opt_ LPCWSTR lpClassName, _In_opt_ LPCWSTR lpWindowName, _In_ DWORD dwStyle, _In_ int X, _In_ int Y, _In_ int nWidth, _In_ int nHeight, _In_opt_ HWND hWndParent, _In_opt_ HMENU hMenu, _In_opt_ HINSTANCE hInstance, _In_opt_ LPVOID lpParam)
ATOM WINAPI RegisterClassExW(_In_ CONST WNDCLASSEXW *)
#define WS_EX_WINDOWEDGE
Definition: winuser.h:407
#define TRACE(s)
Definition: solgame.cpp:4
HINSTANCE hInstance
Definition: winuser.h:3329

Referenced by OleObject_SetClientSite().

◆ deactivate_ui()

static void deactivate_ui ( WebBrowser *  This)
static

Definition at line 590 of file oleobject.c.

591{
592 if(This->ui_activated) {
593 if(This->doc_host.frame)
594 IOleInPlaceFrame_SetActiveObject(This->doc_host.frame, NULL, NULL);
595
596 if(This->uiwindow)
597 IOleInPlaceUIWindow_SetActiveObject(This->uiwindow, NULL, NULL);
598
599 if(This->inplace)
600 IOleInPlaceSiteEx_OnUIDeactivate(This->inplace, FALSE);
602
603 This->ui_activated = FALSE;
604 }
605
606 if(This->inplace)
607 IOleInPlaceSiteEx_OnInPlaceDeactivate(This->inplace);
608}
#define FALSE
Definition: types.h:117

Referenced by OleObject_Close(), and OleObject_DoVerb().

◆ EnumOLEVERB_AddRef()

static ULONG WINAPI EnumOLEVERB_AddRef ( IEnumOLEVERB *  iface)
static

Definition at line 359 of file oleobject.c.

360{
363
364 TRACE("(%p) ref=%ld\n", This, ref);
365
366 return ref;
367}
#define InterlockedIncrement
Definition: armddk.h:53
static EnumOLEVERB * impl_from_IEnumOLEVERB(IEnumOLEVERB *iface)
Definition: oleobject.c:334
long LONG
Definition: pedump.c:60
Definition: send.c:48

◆ EnumOLEVERB_Clone()

static HRESULT WINAPI EnumOLEVERB_Clone ( IEnumOLEVERB *  iface,
IEnumOLEVERB **  ppenum 
)
static

Definition at line 420 of file oleobject.c.

421{
423 FIXME("(%p)->(%p)\n", This, ppenum);
424 return E_NOTIMPL;
425}
#define FIXME(fmt,...)
Definition: precomp.h:53
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ EnumOLEVERB_Next()

static HRESULT WINAPI EnumOLEVERB_Next ( IEnumOLEVERB *  iface,
ULONG  celt,
OLEVERB *  rgelt,
ULONG *  pceltFetched 
)
static

Definition at line 382 of file oleobject.c.

383{
385
386 static const OLEVERB verbs[] =
388
389 TRACE("(%p)->(%lu %p %p)\n", This, celt, rgelt, pceltFetched);
390
391 /* There are a few problems with this implementation, but that's how it seems to work in native. See tests. */
392 if(pceltFetched)
393 *pceltFetched = 0;
394
395 if(This->iter == ARRAY_SIZE(verbs))
396 return S_FALSE;
397
398 if(celt)
399 *rgelt = verbs[This->iter++];
400 return S_OK;
401}
#define ARRAY_SIZE(A)
Definition: main.h:20
Verb verbs[]
Definition: certutil.cpp:21
#define OLEIVERB_HIDE
Definition: ole2.h:41
#define OLEIVERB_UIACTIVATE
Definition: ole2.h:42
#define OLEIVERB_INPLACEACTIVATE
Definition: ole2.h:43
#define OLEIVERB_SHOW
Definition: ole2.h:39
#define OLEIVERB_PRIMARY
Definition: ole2.h:38
#define S_FALSE
Definition: winerror.h:3451

◆ EnumOLEVERB_QueryInterface()

static HRESULT WINAPI EnumOLEVERB_QueryInterface ( IEnumOLEVERB *  iface,
REFIID  riid,
void **  ppv 
)
static

Definition at line 339 of file oleobject.c.

340{
342
344 TRACE("(%p)->(IID_IUnknown %p)\n", This, ppv);
345 *ppv = &This->IEnumOLEVERB_iface;
346 }else if(IsEqualGUID(&IID_IEnumOLEVERB, riid)) {
347 TRACE("(%p)->(IID_IEnumOLEVERB %p)\n", This, ppv);
348 *ppv = &This->IEnumOLEVERB_iface;
349 }else {
350 WARN("(%p)->(%s %p)\n", This, debugstr_guid(riid), ppv);
351 *ppv = NULL;
352 return E_NOINTERFACE;
353 }
354
355 IUnknown_AddRef((IUnknown*)*ppv);
356 return S_OK;
357}
const GUID IID_IUnknown
REFIID riid
Definition: atlbase.h:39
REFIID LPVOID * ppv
Definition: atlbase.h:39
#define debugstr_guid
Definition: kernel32.h:35
const GUID IID_IEnumOLEVERB
#define IsEqualGUID(rguid1, rguid2)
Definition: guiddef.h:147
#define E_NOINTERFACE
Definition: winerror.h:3479

◆ EnumOLEVERB_Release()

static ULONG WINAPI EnumOLEVERB_Release ( IEnumOLEVERB *  iface)
static

Definition at line 369 of file oleobject.c.

370{
373
374 TRACE("(%p) ref=%ld\n", This, ref);
375
376 if(!ref)
377 free(This);
378
379 return ref;
380}
#define InterlockedDecrement
Definition: armddk.h:52
#define free
Definition: debug_ros.c:5

◆ EnumOLEVERB_Reset()

static HRESULT WINAPI EnumOLEVERB_Reset ( IEnumOLEVERB *  iface)
static

Definition at line 410 of file oleobject.c.

411{
413
414 TRACE("(%p)\n", This);
415
416 This->iter = 0;
417 return S_OK;
418}

◆ EnumOLEVERB_Skip()

static HRESULT WINAPI EnumOLEVERB_Skip ( IEnumOLEVERB *  iface,
ULONG  celt 
)
static

Definition at line 403 of file oleobject.c.

404{
406 TRACE("(%p)->(%lu)\n", This, celt);
407 return S_OK;
408}

◆ get_client_disp_property()

static HRESULT get_client_disp_property ( IOleClientSite *  client,
DISPID  dispid,
VARIANT *  res 
)
static

Definition at line 240 of file oleobject.c.

241{
242 IDispatch *disp = NULL;
243 DISPPARAMS dispparams = {NULL, 0};
245
247
248 if(!client)
249 return S_OK;
250
251 hres = IOleClientSite_QueryInterface(client, &IID_IDispatch, (void**)&disp);
252 if(FAILED(hres)) {
253 TRACE("Could not get IDispatch\n");
254 return hres;
255 }
256
257 hres = IDispatch_Invoke(disp, dispid, &IID_NULL, LOCALE_SYSTEM_DEFAULT,
258 DISPATCH_PROPERTYGET, &dispparams, res, NULL, NULL);
259
260 IDispatch_Release(disp);
261
262 return hres;
263}
GLuint res
Definition: glext.h:9613
struct stdole::DISPPARAMS DISPPARAMS
#define LOCALE_SYSTEM_DEFAULT
#define DISPATCH_PROPERTYGET
Definition: oleauto.h:1007
const GUID IID_IDispatch
#define IID_NULL
Definition: guiddef.h:98
static FILE * client
Definition: client.c:37
void WINAPI VariantInit(VARIANTARG *pVarg)
Definition: variant.c:547

Referenced by on_offlineconnected_change(), on_silent_change(), and prepare_for_binding().

◆ impl_from_IEnumOLEVERB()

static EnumOLEVERB * impl_from_IEnumOLEVERB ( IEnumOLEVERB *  iface)
inlinestatic

Definition at line 334 of file oleobject.c.

335{
336 return CONTAINING_RECORD(iface, EnumOLEVERB, IEnumOLEVERB_iface);
337}
#define CONTAINING_RECORD(address, type, field)
Definition: typedefs.h:260

Referenced by EnumOLEVERB_AddRef(), EnumOLEVERB_Clone(), EnumOLEVERB_Next(), EnumOLEVERB_QueryInterface(), EnumOLEVERB_Release(), EnumOLEVERB_Reset(), and EnumOLEVERB_Skip().

◆ impl_from_IOleCommandTarget()

static WebBrowser * impl_from_IOleCommandTarget ( IOleCommandTarget *  iface)
inlinestatic

◆ impl_from_IOleControl()

static WebBrowser * impl_from_IOleControl ( IOleControl *  iface)
inlinestatic

◆ impl_from_IOleInPlaceActiveObject()

◆ impl_from_IOleInPlaceObject()

◆ impl_from_IOleObject()

◆ InPlaceActiveObject_AddRef()

static ULONG WINAPI InPlaceActiveObject_AddRef ( IOleInPlaceActiveObject *  iface)
static

Definition at line 1089 of file oleobject.c.

1090{
1092 return IUnknown_AddRef(This->hlink_frame.outer);
1093}
static WebBrowser * impl_from_IOleInPlaceActiveObject(IOleInPlaceActiveObject *iface)
Definition: oleobject.c:1077

◆ InPlaceActiveObject_ContextSensitiveHelp()

static HRESULT WINAPI InPlaceActiveObject_ContextSensitiveHelp ( IOleInPlaceActiveObject *  iface,
BOOL  fEnterMode 
)
static

Definition at line 1108 of file oleobject.c.

1110{
1112 return IOleInPlaceObject_ContextSensitiveHelp(&This->IOleInPlaceObject_iface, fEnterMode);
1113}

◆ InPlaceActiveObject_EnableModeless()

static HRESULT WINAPI InPlaceActiveObject_EnableModeless ( IOleInPlaceActiveObject *  iface,
BOOL  fEnable 
)
static

Definition at line 1163 of file oleobject.c.

1165{
1167 FIXME("(%p)->(%x)\n", This, fEnable);
1168 return E_NOTIMPL;
1169}

◆ InPlaceActiveObject_GetWindow()

static HRESULT WINAPI InPlaceActiveObject_GetWindow ( IOleInPlaceActiveObject *  iface,
HWND *  phwnd 
)
static

Definition at line 1101 of file oleobject.c.

1103{
1105 return IOleInPlaceObject_GetWindow(&This->IOleInPlaceObject_iface, phwnd);
1106}

◆ InPlaceActiveObject_OnDocWindowActivate()

static HRESULT WINAPI InPlaceActiveObject_OnDocWindowActivate ( IOleInPlaceActiveObject *  iface,
BOOL  fActivate 
)
static

Definition at line 1147 of file oleobject.c.

1149{
1151 FIXME("(%p)->(%x)\n", This, fActivate);
1152 return E_NOTIMPL;
1153}

◆ InPlaceActiveObject_OnFrameWindowActivate()

static HRESULT WINAPI InPlaceActiveObject_OnFrameWindowActivate ( IOleInPlaceActiveObject *  iface,
BOOL  fActivate 
)
static

Definition at line 1139 of file oleobject.c.

1141{
1143 FIXME("(%p)->(%x)\n", This, fActivate);
1144 return E_NOTIMPL;
1145}

◆ InPlaceActiveObject_QueryInterface()

static HRESULT WINAPI InPlaceActiveObject_QueryInterface ( IOleInPlaceActiveObject *  iface,
REFIID  riid,
void **  ppv 
)
static

Definition at line 1082 of file oleobject.c.

1084{
1086 return IUnknown_QueryInterface(This->hlink_frame.outer, riid, ppv);
1087}

◆ InPlaceActiveObject_Release()

static ULONG WINAPI InPlaceActiveObject_Release ( IOleInPlaceActiveObject *  iface)
static

Definition at line 1095 of file oleobject.c.

1096{
1098 return IUnknown_Release(This->hlink_frame.outer);
1099}

◆ InPlaceActiveObject_ResizeBorder()

static HRESULT WINAPI InPlaceActiveObject_ResizeBorder ( IOleInPlaceActiveObject *  iface,
LPCRECT  lprcBorder,
IOleInPlaceUIWindow *  pUIWindow,
BOOL  fFrameWindow 
)
static

Definition at line 1155 of file oleobject.c.

1157{
1159 FIXME("(%p)->(%p %p %x)\n", This, lprcBorder, pUIWindow, fFrameWindow);
1160 return E_NOTIMPL;
1161}

◆ InPlaceActiveObject_TranslateAccelerator()

static HRESULT WINAPI InPlaceActiveObject_TranslateAccelerator ( IOleInPlaceActiveObject *  iface,
LPMSG  lpmsg 
)
static

Definition at line 1115 of file oleobject.c.

1117{
1119 IOleInPlaceActiveObject *activeobj;
1120 HRESULT hr = S_FALSE;
1121
1122 TRACE("(%p)->(%p)\n", This, lpmsg);
1123
1124 if(This->doc_host.document) {
1125 if(SUCCEEDED(IUnknown_QueryInterface(This->doc_host.document,
1127 (void**)&activeobj))) {
1128 hr = IOleInPlaceActiveObject_TranslateAccelerator(activeobj, lpmsg);
1129 IOleInPlaceActiveObject_Release(activeobj);
1130 }
1131 }
1132
1133 if(SUCCEEDED(hr))
1134 return hr;
1135 else
1136 return S_FALSE;
1137}
HRESULT hr
Definition: delayimp.cpp:582
const GUID IID_IOleInPlaceActiveObject

◆ notify_on_focus()

static void notify_on_focus ( WebBrowser *  This,
BOOL  got_focus 
)
static

Definition at line 52 of file oleobject.c.

53{
54 IOleControlSite *control_site;
56
57 if(!This->client)
58 return;
59
60 hres = IOleClientSite_QueryInterface(This->client, &IID_IOleControlSite, (void**)&control_site);
61 if(FAILED(hres))
62 return;
63
64 IOleControlSite_OnFocus(control_site, got_focus);
65 IOleControlSite_Release(control_site);
66}
const GUID IID_IOleControlSite

Referenced by activate_ui(), deactivate_ui(), and shell_embedding_proc().

◆ OleControl_AddRef()

static ULONG WINAPI OleControl_AddRef ( IOleControl *  iface)
static

Definition at line 1006 of file oleobject.c.

1007{
1009 return IUnknown_AddRef(This->hlink_frame.outer);
1010}
static WebBrowser * impl_from_IOleControl(IOleControl *iface)
Definition: oleobject.c:994

◆ OleControl_FreezeEvents()

static HRESULT WINAPI OleControl_FreezeEvents ( IOleControl *  iface,
BOOL  bFreeze 
)
static

Definition at line 1059 of file oleobject.c.

1060{
1062 FIXME("(%p)->(%x)\n", This, bFreeze);
1063 return E_NOTIMPL;
1064}

◆ OleControl_GetControlInfo()

static HRESULT WINAPI OleControl_GetControlInfo ( IOleControl *  iface,
LPCONTROLINFO  pCI 
)
static

Definition at line 1018 of file oleobject.c.

1019{
1021
1022 TRACE("(%p)->(%p)\n", This, pCI);
1023
1024 /* Tests show that this function should be not implemented */
1025 return E_NOTIMPL;
1026}

◆ OleControl_OnAmbientPropertyChange()

static HRESULT WINAPI OleControl_OnAmbientPropertyChange ( IOleControl *  iface,
DISPID  dispID 
)
static

Definition at line 1035 of file oleobject.c.

1036{
1038
1039 TRACE("(%p)->(%ld)\n", This, dispID);
1040
1041 switch(dispID) {
1042 case DISPID_UNKNOWN:
1043 /* Unknown means multiple properties changed, so check them all.
1044 * BUT the Webbrowser OleControl object doesn't appear to do this.
1045 */
1046 return S_OK;
1048 return S_OK;
1052 return on_silent_change(This);
1053 }
1054
1055 FIXME("Unknown dispID %ld\n", dispID);
1056 return E_NOTIMPL;
1057}
#define DISPID_AMBIENT_OFFLINEIFNOTCONNECTED
Definition: idispids.h:25
#define DISPID_AMBIENT_SILENT
Definition: idispids.h:26
#define DISPID_AMBIENT_DLCONTROL
Definition: mshtmdid.h:539
static HRESULT on_silent_change(WebBrowser *This)
Definition: oleobject.c:279
static HRESULT on_offlineconnected_change(WebBrowser *This)
Definition: oleobject.c:265

◆ OleControl_OnMnemonic()

static HRESULT WINAPI OleControl_OnMnemonic ( IOleControl *  iface,
struct tagMSG *  pMsg 
)
static

Definition at line 1028 of file oleobject.c.

1029{
1031 FIXME("(%p)->(%p)\n", This, pMsg);
1032 return E_NOTIMPL;
1033}

◆ OleControl_QueryInterface()

static HRESULT WINAPI OleControl_QueryInterface ( IOleControl *  iface,
REFIID  riid,
LPVOID *  ppobj 
)
static

Definition at line 999 of file oleobject.c.

1001{
1003 return IUnknown_QueryInterface(This->hlink_frame.outer, riid, ppobj);
1004}

◆ OleControl_Release()

static ULONG WINAPI OleControl_Release ( IOleControl *  iface)
static

Definition at line 1012 of file oleobject.c.

1013{
1015 return IUnknown_Release(This->hlink_frame.outer);
1016}

◆ OleInPlaceObject_AddRef()

static ULONG WINAPI OleInPlaceObject_AddRef ( IOleInPlaceObject *  iface)
static

Definition at line 897 of file oleobject.c.

898{
900 return IUnknown_AddRef(This->hlink_frame.outer);
901}
static WebBrowser * impl_from_IOleInPlaceObject(IOleInPlaceObject *iface)
Definition: oleobject.c:885

◆ OleInPlaceObject_ContextSensitiveHelp()

static HRESULT WINAPI OleInPlaceObject_ContextSensitiveHelp ( IOleInPlaceObject *  iface,
BOOL  fEnterMode 
)
static

Definition at line 919 of file oleobject.c.

921{
923 FIXME("(%p)->(%x)\n", This, fEnterMode);
924 return E_NOTIMPL;
925}

◆ OleInPlaceObject_GetWindow()

static HRESULT WINAPI OleInPlaceObject_GetWindow ( IOleInPlaceObject *  iface,
HWND *  phwnd 
)
static

Definition at line 909 of file oleobject.c.

910{
912
913 TRACE("(%p)->(%p)\n", This, phwnd);
914
915 *phwnd = This->shell_embedding_hwnd;
916 return S_OK;
917}

◆ OleInPlaceObject_InPlaceDeactivate()

static HRESULT WINAPI OleInPlaceObject_InPlaceDeactivate ( IOleInPlaceObject *  iface)
static

Definition at line 927 of file oleobject.c.

928{
930 FIXME("(%p)\n", This);
931
932 if(This->inplace) {
933 IOleInPlaceSiteEx_Release(This->inplace);
934 This->inplace = NULL;
935 }
936
937 return S_OK;
938}

◆ OleInPlaceObject_QueryInterface()

static HRESULT WINAPI OleInPlaceObject_QueryInterface ( IOleInPlaceObject *  iface,
REFIID  riid,
LPVOID *  ppobj 
)
static

Definition at line 890 of file oleobject.c.

892{
894 return IUnknown_QueryInterface(This->hlink_frame.outer, riid, ppobj);
895}

◆ OleInPlaceObject_ReactivateAndUndo()

static HRESULT WINAPI OleInPlaceObject_ReactivateAndUndo ( IOleInPlaceObject *  iface)
static

Definition at line 970 of file oleobject.c.

971{
973 FIXME("(%p)\n", This);
974 return E_NOTIMPL;
975}

◆ OleInPlaceObject_Release()

static ULONG WINAPI OleInPlaceObject_Release ( IOleInPlaceObject *  iface)
static

Definition at line 903 of file oleobject.c.

904{
906 return IUnknown_Release(This->hlink_frame.outer);
907}

◆ OleInPlaceObject_SetObjectRects()

static HRESULT WINAPI OleInPlaceObject_SetObjectRects ( IOleInPlaceObject *  iface,
LPCRECT  lprcPosRect,
LPCRECT  lprcClipRect 
)
static

Definition at line 947 of file oleobject.c.

949{
951
952 TRACE("(%p)->(%s %s)\n", This, wine_dbgstr_rect(lprcPosRect), wine_dbgstr_rect(lprcClipRect));
953
954 This->pos_rect = *lprcPosRect;
955
956 if(lprcClipRect)
957 This->clip_rect = *lprcClipRect;
958
959 if(This->shell_embedding_hwnd) {
960 SetWindowPos(This->shell_embedding_hwnd, NULL,
961 lprcPosRect->left, lprcPosRect->top,
962 lprcPosRect->right-lprcPosRect->left,
963 lprcPosRect->bottom-lprcPosRect->top,
965 }
966
967 return S_OK;
968}
static const char * wine_dbgstr_rect(const RECT *prc)
Definition: atltest.h:160
#define SWP_NOACTIVATE
Definition: winuser.h:1253
long bottom
Definition: dcommon.idl:29
long right
Definition: dcommon.idl:29
long left
Definition: dcommon.idl:29
long top
Definition: dcommon.idl:29

◆ OleInPlaceObject_UIDeactivate()

static HRESULT WINAPI OleInPlaceObject_UIDeactivate ( IOleInPlaceObject *  iface)
static

Definition at line 940 of file oleobject.c.

941{
943 FIXME("(%p)\n", This);
944 return E_NOTIMPL;
945}

◆ OleObject_AddRef()

static ULONG WINAPI OleObject_AddRef ( IOleObject *  iface)
static

Definition at line 452 of file oleobject.c.

453{
455 return IUnknown_AddRef(This->hlink_frame.outer);
456}
static WebBrowser * impl_from_IOleObject(IOleObject *iface)
Definition: oleobject.c:441

◆ OleObject_Advise()

static HRESULT WINAPI OleObject_Advise ( IOleObject *  iface,
IAdviseSink *  pAdvSink,
DWORD *  pdwConnection 
)
static

Definition at line 787 of file oleobject.c.

789{
791 HRESULT hr = S_OK;
792
793 TRACE("(%p)->(%p, %p)\n", This, pAdvSink, pdwConnection);
794
795 if(!pdwConnection)
796 return E_INVALIDARG;
797
798 *pdwConnection = 0;
799
800 if(!pAdvSink)
801 return E_INVALIDARG;
802
803 if(!This->advise_holder)
804 hr = CreateOleAdviseHolder(&This->advise_holder);
805
806 if(hr == S_OK)
807 hr = IOleAdviseHolder_Advise(This->advise_holder, pAdvSink, pdwConnection);
808
809 return hr;
810}
HRESULT WINAPI CreateOleAdviseHolder(IOleAdviseHolder **ppOAHolder)
Definition: oleobj.c:874

◆ OleObject_Close()

static HRESULT WINAPI OleObject_Close ( IOleObject *  iface,
DWORD  dwSaveOption 
)
static

Definition at line 610 of file oleobject.c.

611{
615
616 TRACE("(%p)->(%ld)\n", This, dwSaveOption);
617
618 if(dwSaveOption != OLECLOSE_NOSAVE) {
619 FIXME("unimplemented flag: %lx\n", dwSaveOption);
620 return E_NOTIMPL;
621 }
622
624
625 /* store old client site - we need to restore it in DoVerb */
626 client = This->client;
627 if(This->client)
628 IOleClientSite_AddRef(This->client);
629 hres = IOleObject_SetClientSite(iface, NULL);
630 This->client_closed = client;
631
632 if(This->advise_holder)
633 IOleAdviseHolder_SendOnClose(This->advise_holder);
634
635 return hres;
636}
static void deactivate_ui(WebBrowser *This)
Definition: oleobject.c:590

◆ OleObject_DoVerb()

static HRESULT WINAPI OleObject_DoVerb ( IOleObject *  iface,
LONG  iVerb,
struct tagMSG *  lpmsg,
LPOLECLIENTSITE  pActiveSite,
LONG  lindex,
HWND  hwndParent,
LPCRECT  lprcPosRect 
)
static

Definition at line 669 of file oleobject.c.

671{
673
674 TRACE("(%p)->(%ld %p %p %ld %p %s)\n", This, iVerb, lpmsg, pActiveSite, lindex, hwndParent,
675 wine_dbgstr_rect(lprcPosRect));
676
677 /* restore closed client site if we have one */
678 if(!This->client && This->client_closed) {
679 IOleClientSite *client = This->client_closed;
680 This->client_closed = NULL;
681 IOleObject_SetClientSite(iface, client);
682 IOleClientSite_Release(client);
683 }
684
685 switch (iVerb)
686 {
687 case OLEIVERB_SHOW:
688 TRACE("OLEIVERB_SHOW\n");
689 return activate_ui(This, pActiveSite);
691 TRACE("OLEIVERB_UIACTIVATE\n");
692 return activate_ui(This, pActiveSite);
694 TRACE("OLEIVERB_INPLACEACTIVATE\n");
695 return activate_inplace(This, pActiveSite);
696 case OLEIVERB_HIDE:
697 TRACE("OLEIVERB_HIDE\n");
698 if(This->inplace) {
700 IOleInPlaceSiteEx_Release(This->inplace);
701 This->inplace = NULL;
702 }
703 if(This->shell_embedding_hwnd)
704 ShowWindow(This->shell_embedding_hwnd, SW_HIDE);
705 return S_OK;
706 default:
707 FIXME("stub for %ld\n", iVerb);
708 break;
709 }
710
711 return E_NOTIMPL;
712}
static HWND hwndParent
Definition: cryptui.c:299
static HRESULT activate_ui(WebBrowser *This, IOleClientSite *active_site)
Definition: oleobject.c:200
#define SW_HIDE
Definition: winuser.h:779

◆ OleObject_EnumAdvise()

static HRESULT WINAPI OleObject_EnumAdvise ( IOleObject *  iface,
IEnumSTATDATA **  ppenumAdvise 
)
static

Definition at line 824 of file oleobject.c.

825{
827
828 TRACE("(%p)->(%p): returning E_NOTIMPL\n", This, ppenumAdvise);
829
830 *ppenumAdvise = NULL;
831 return E_NOTIMPL;
832}

◆ OleObject_EnumVerbs()

static HRESULT WINAPI OleObject_EnumVerbs ( IOleObject *  iface,
IEnumOLEVERB **  ppEnumOleVerb 
)
static

Definition at line 714 of file oleobject.c.

715{
718
719 TRACE("(%p)->(%p)\n", This, ppEnumOleVerb);
720
721 ret = malloc(sizeof(*ret));
722 if(!ret)
723 return E_OUTOFMEMORY;
724
725 ret->IEnumOLEVERB_iface.lpVtbl = &EnumOLEVERBVtbl;
726 ret->ref = 1;
727 ret->iter = 0;
728
729 *ppEnumOleVerb = &ret->IEnumOLEVERB_iface;
730 return S_OK;
731}
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
#define malloc
Definition: debug_ros.c:4
return ret
Definition: mutex.c:147
static const IEnumOLEVERBVtbl EnumOLEVERBVtbl
Definition: oleobject.c:427

◆ OleObject_GetClientSite()

static HRESULT WINAPI OleObject_GetClientSite ( IOleObject *  iface,
LPOLECLIENTSITE *  ppClientSite 
)
static

Definition at line 563 of file oleobject.c.

564{
566
567 TRACE("(%p)->(%p)\n", This, ppClientSite);
568
569 if(!ppClientSite)
570 return E_INVALIDARG;
571
572 if(This->client)
573 IOleClientSite_AddRef(This->client);
574 *ppClientSite = This->client;
575
576 return S_OK;
577}

◆ OleObject_GetClipboardData()

static HRESULT WINAPI OleObject_GetClipboardData ( IOleObject *  iface,
DWORD  dwReserved,
LPDATAOBJECT *  ppDataObject 
)
static

Definition at line 661 of file oleobject.c.

663{
665 FIXME("(%p)->(%ld, %p)\n", This, dwReserved, ppDataObject);
666 return E_NOTIMPL;
667}
_In_ HANDLE _In_ DWORD _In_ DWORD _Inout_opt_ LPOVERLAPPED _In_opt_ LPTRANSMIT_FILE_BUFFERS _In_ DWORD dwReserved
Definition: mswsock.h:95

◆ OleObject_GetExtent()

static HRESULT WINAPI OleObject_GetExtent ( IOleObject *  iface,
DWORD  dwDrawAspect,
SIZEL *  psizel 
)
static

Definition at line 776 of file oleobject.c.

777{
779
780 TRACE("(%p)->(%lx, %p)\n", This, dwDrawAspect, psizel);
781
782 /* Tests show that dwDrawAspect is ignored */
783 *psizel = This->extent;
784 return S_OK;
785}

◆ OleObject_GetMiscStatus()

static HRESULT WINAPI OleObject_GetMiscStatus ( IOleObject *  iface,
DWORD  dwAspect,
DWORD *  pdwStatus 
)
static

Definition at line 834 of file oleobject.c.

835{
837
838 TRACE("(%p)->(%lx, %p)\n", This, dwAspect, pdwStatus);
839
842
843 return S_OK;
844}
@ OLEMISC_INSIDEOUT
Definition: actctx.c:89
@ OLEMISC_ACTIVATEWHENVISIBLE
Definition: actctx.c:90
@ OLEMISC_SETCLIENTSITEFIRST
Definition: actctx.c:99
@ OLEMISC_RECOMPOSEONRESIZE
Definition: actctx.c:82
@ OLEMISC_CANTLINKINSIDE
Definition: actctx.c:86

◆ OleObject_GetMoniker()

static HRESULT WINAPI OleObject_GetMoniker ( IOleObject *  iface,
DWORD  dwAssign,
DWORD  dwWhichMoniker,
LPMONIKER *  ppmk 
)
static

Definition at line 645 of file oleobject.c.

647{
649 FIXME("(%p)->(%ld, %ld, %p)\n", This, dwAssign, dwWhichMoniker, ppmk);
650 return E_NOTIMPL;
651}

◆ OleObject_GetUserClassID()

static HRESULT WINAPI OleObject_GetUserClassID ( IOleObject *  iface,
CLSID *  pClsid 
)
static

Definition at line 747 of file oleobject.c.

748{
750
751 TRACE("(%p)->(%p)\n", This, pClsid);
752
753 *pClsid = This->version == 1 ? CLSID_WebBrowser_V1 : CLSID_WebBrowser;
754 return S_OK;
755}

◆ OleObject_GetUserType()

static HRESULT WINAPI OleObject_GetUserType ( IOleObject *  iface,
DWORD  dwFormOfType,
LPOLESTR *  pszUserType 
)
static

Definition at line 757 of file oleobject.c.

759{
761 TRACE("(%p, %ld, %p)\n", This, dwFormOfType, pszUserType);
762 return OleRegGetUserType(&CLSID_WebBrowser, dwFormOfType, pszUserType);
763}
HRESULT WINAPI OleRegGetUserType(REFCLSID clsid, DWORD form, LPOLESTR *usertype)
Definition: ole2.c:668

◆ OleObject_InitFromData()

static HRESULT WINAPI OleObject_InitFromData ( IOleObject *  iface,
LPDATAOBJECT  pDataObject,
BOOL  fCreation,
DWORD  dwReserved 
)
static

Definition at line 653 of file oleobject.c.

655{
657 FIXME("(%p)->(%p, %d, %ld)\n", This, pDataObject, fCreation, dwReserved);
658 return E_NOTIMPL;
659}

◆ OleObject_IsUpToDate()

static HRESULT WINAPI OleObject_IsUpToDate ( IOleObject *  iface)
static

Definition at line 740 of file oleobject.c.

741{
743 FIXME("(%p)\n", This);
744 return E_NOTIMPL;
745}

◆ OleObject_QueryInterface()

static HRESULT WINAPI OleObject_QueryInterface ( IOleObject *  iface,
REFIID  riid,
void **  ppv 
)
static

Definition at line 446 of file oleobject.c.

447{
449 return IUnknown_QueryInterface(This->hlink_frame.outer, riid, ppv);
450}

◆ OleObject_Release()

static ULONG WINAPI OleObject_Release ( IOleObject *  iface)
static

Definition at line 458 of file oleobject.c.

459{
461 return IUnknown_Release(This->hlink_frame.outer);
462}

◆ OleObject_SetClientSite()

static HRESULT WINAPI OleObject_SetClientSite ( IOleObject *  iface,
LPOLECLIENTSITE  pClientSite 
)
static

Definition at line 464 of file oleobject.c.

465{
467 IDocHostUIHandler *hostui;
468 IOleCommandTarget *olecmd;
469 BOOL get_olecmd = TRUE;
471 IDispatch *disp;
473
474 TRACE("(%p)->(%p)\n", This, pClientSite);
475
476 if(This->client_closed) {
477 IOleClientSite_Release(This->client_closed);
478 This->client_closed = NULL;
479 }
480
481 if(This->client == pClientSite)
482 return S_OK;
483
484 if(This->client && pClientSite) {
485 get_olecmd = FALSE;
486 olecmd = This->doc_host.olecmd;
487 if(olecmd)
488 IOleCommandTarget_AddRef(olecmd);
489 }
490
491 release_client_site(This, !pClientSite);
492
493 if(!pClientSite) {
494 on_commandstate_change(&This->doc_host, CSC_NAVIGATEBACK, FALSE);
495 on_commandstate_change(&This->doc_host, CSC_NAVIGATEFORWARD, FALSE);
496
497 if(This->doc_host.document)
498 deactivate_document(&This->doc_host);
499 return S_OK;
500 }
501
502 IOleClientSite_AddRef(pClientSite);
503 This->client = pClientSite;
504
505 hres = IOleClientSite_QueryInterface(This->client, &IID_IDispatch,
506 (void**)&disp);
507 if(SUCCEEDED(hres))
508 This->doc_host.client_disp = disp;
509
510 hres = IOleClientSite_QueryInterface(This->client, &IID_IDocHostUIHandler,
511 (void**)&hostui);
512 if(SUCCEEDED(hres))
513 This->doc_host.hostui = hostui;
514
515 if(get_olecmd) {
516 hres = IOleClientSite_GetContainer(This->client, &container);
517 if(SUCCEEDED(hres)) {
518 ITargetContainer *target_container;
519
520 hres = IOleContainer_QueryInterface(container, &IID_ITargetContainer,
521 (void**)&target_container);
522 if(SUCCEEDED(hres)) {
523 FIXME("Unsupported ITargetContainer\n");
524 ITargetContainer_Release(target_container);
525 }
526
527 hres = IOleContainer_QueryInterface(container, &IID_IOleCommandTarget, (void**)&olecmd);
528 if(FAILED(hres))
529 olecmd = NULL;
530
531 IOleContainer_Release(container);
532 }else {
533 hres = IOleClientSite_QueryInterface(This->client, &IID_IOleCommandTarget, (void**)&olecmd);
534 if(FAILED(hres))
535 olecmd = NULL;
536 }
537 }
538
539 This->doc_host.olecmd = olecmd;
540
541 if(This->shell_embedding_hwnd) {
542 IOleInPlaceSite *inplace;
543 HWND parent;
544
545 hres = IOleClientSite_QueryInterface(This->client, &IID_IOleInPlaceSite, (void**)&inplace);
546 if(SUCCEEDED(hres)) {
547 hres = IOleInPlaceSite_GetWindow(inplace, &parent);
548 IOleInPlaceSite_Release(inplace);
549 if(SUCCEEDED(hres))
550 SHSetParentHwnd(This->shell_embedding_hwnd, parent);
551 }
552 }else {
554 }
555
559
560 return S_OK;
561}
void on_commandstate_change(DocHost *doc_host, LONG command, BOOL enable)
Definition: dochost.c:83
void deactivate_document(DocHost *This)
Definition: dochost.c:515
unsigned int BOOL
Definition: ntddk_ex.h:94
@ SESSION_INCREMENT
Definition: ieframe.h:383
LONG WINAPI SetQueryNetSessionCount(DWORD session_op)
Definition: ieframe_main.c:295
static void create_shell_embedding_hwnd(WebBrowser *This)
Definition: oleobject.c:97
static void release_client_site(WebBrowser *This, BOOL destroy_win)
Definition: oleobject.c:293

◆ OleObject_SetColorScheme()

static HRESULT WINAPI OleObject_SetColorScheme ( IOleObject *  iface,
LOGPALETTE *  pLogpal 
)
static

Definition at line 846 of file oleobject.c.

847{
849 FIXME("(%p)->(%p)\n", This, pLogpal);
850 return E_NOTIMPL;
851}

◆ OleObject_SetExtent()

static HRESULT WINAPI OleObject_SetExtent ( IOleObject *  iface,
DWORD  dwDrawAspect,
SIZEL *  psizel 
)
static

Definition at line 765 of file oleobject.c.

766{
768
769 TRACE("(%p)->(%lx %p)\n", This, dwDrawAspect, psizel);
770
771 /* Tests show that dwDrawAspect is ignored */
772 This->extent = *psizel;
773 return S_OK;
774}

◆ OleObject_SetHostNames()

static HRESULT WINAPI OleObject_SetHostNames ( IOleObject *  iface,
LPCOLESTR  szContainerApp,
LPCOLESTR  szContainerObj 
)
static

Definition at line 579 of file oleobject.c.

581{
583
584 TRACE("(%p)->(%s, %s)\n", This, debugstr_w(szContainerApp), debugstr_w(szContainerObj));
585
586 /* We have nothing to do here. */
587 return S_OK;
588}
#define debugstr_w
Definition: kernel32.h:32

◆ OleObject_SetMoniker()

static HRESULT WINAPI OleObject_SetMoniker ( IOleObject *  iface,
DWORD  dwWhichMoniker,
IMoniker *  pmk 
)
static

Definition at line 638 of file oleobject.c.

639{
641 FIXME("(%p)->(%ld, %p)\n", This, dwWhichMoniker, pmk);
642 return E_NOTIMPL;
643}

◆ OleObject_Unadvise()

static HRESULT WINAPI OleObject_Unadvise ( IOleObject *  iface,
DWORD  dwConnection 
)
static

Definition at line 812 of file oleobject.c.

813{
815
816 TRACE("(%p)->(%ld)\n", This, dwConnection);
817
818 if(!This->advise_holder)
819 return OLE_E_NOCONNECTION;
820
821 return IOleAdviseHolder_Unadvise(This->advise_holder, dwConnection);
822}
#define OLE_E_NOCONNECTION
Definition: winerror.h:3729

◆ OleObject_Update()

static HRESULT WINAPI OleObject_Update ( IOleObject *  iface)
static

Definition at line 733 of file oleobject.c.

734{
736 FIXME("(%p)\n", This);
737 return E_NOTIMPL;
738}

◆ on_offlineconnected_change()

static HRESULT on_offlineconnected_change ( WebBrowser *  This)
static

Definition at line 265 of file oleobject.c.

266{
267 VARIANT offline;
268
270
271 if(V_VT(&offline) == VT_BOOL)
272 IWebBrowser2_put_Offline(&This->IWebBrowser2_iface, V_BOOL(&offline));
273 else if(V_VT(&offline) != VT_EMPTY)
274 WARN("wrong V_VT(silent) %d\n", V_VT(&offline));
275
276 return S_OK;
277}
@ VT_BOOL
Definition: compat.h:2306
@ VT_EMPTY
Definition: compat.h:2295
#define V_BOOL(A)
Definition: oleauto.h:224
#define V_VT(A)
Definition: oleauto.h:211
static HRESULT get_client_disp_property(IOleClientSite *client, DISPID dispid, VARIANT *res)
Definition: oleobject.c:240

Referenced by OleControl_OnAmbientPropertyChange(), and OleObject_SetClientSite().

◆ on_silent_change()

static HRESULT on_silent_change ( WebBrowser *  This)
static

Definition at line 279 of file oleobject.c.

280{
282
284
285 if(V_VT(&silent) == VT_BOOL)
286 IWebBrowser2_put_Silent(&This->IWebBrowser2_iface, V_BOOL(&silent));
287 else if(V_VT(&silent) != VT_EMPTY)
288 WARN("wrong V_VT(silent) %d\n", V_VT(&silent));
289
290 return S_OK;
291}
static BOOL silent
Definition: msiexec.c:42

Referenced by OleControl_OnAmbientPropertyChange(), and OleObject_SetClientSite().

◆ release_client_site()

static void release_client_site ( WebBrowser *  This,
BOOL  destroy_win 
)
static

Definition at line 293 of file oleobject.c.

294{
295 release_dochost_client(&This->doc_host);
296
297 if(This->client) {
298 IOleClientSite_Release(This->client);
299 This->client = NULL;
300 }
301
302 if(This->client_closed) {
303 IOleClientSite_Release(This->client_closed);
304 This->client_closed = NULL;
305 }
306
307 if(destroy_win && This->shell_embedding_hwnd) {
308 DestroyWindow(This->shell_embedding_hwnd);
309 This->shell_embedding_hwnd = NULL;
310 }
311
312 if(This->inplace) {
313 IOleInPlaceSiteEx_Release(This->inplace);
314 This->inplace = NULL;
315 }
316
317 if(This->container) {
318 IOleContainer_Release(This->container);
319 This->container = NULL;
320 }
321
322 if(This->uiwindow) {
323 IOleInPlaceUIWindow_Release(This->uiwindow);
324 This->uiwindow = NULL;
325 }
326}
void release_dochost_client(DocHost *This)
Definition: dochost.c:632
BOOL WINAPI DestroyWindow(_In_ HWND)

Referenced by OleObject_SetClientSite(), and WebBrowser_OleObject_Destroy().

◆ resize_window()

static LRESULT resize_window ( WebBrowser *  This,
LONG  width,
LONG  height 
)
static

Definition at line 43 of file oleobject.c.

44{
45 if(This->doc_host.hwnd)
46 SetWindowPos(This->doc_host.hwnd, NULL, 0, 0, width, height,
48
49 return 0;
50}
GLint GLint GLsizei GLsizei height
Definition: gl.h:1546
GLint GLint GLsizei width
Definition: gl.h:1546

Referenced by shell_embedding_proc().

◆ shell_embedding_proc()

static LRESULT WINAPI shell_embedding_proc ( HWND  hwnd,
UINT  msg,
WPARAM  wParam,
LPARAM  lParam 
)
static

Definition at line 68 of file oleobject.c.

69{
71
72 static const WCHAR wszTHIS[] = {'T','H','I','S',0};
73
74 if(msg == WM_CREATE) {
76 SetPropW(hwnd, wszTHIS, This);
77 }else {
78 This = GetPropW(hwnd, wszTHIS);
79 }
80
81 switch(msg) {
82 case WM_SIZE:
84 case WM_DOCHOSTTASK:
85 return process_dochost_tasks(&This->doc_host);
86 case WM_SETFOCUS:
88 break;
89 case WM_KILLFOCUS:
91 break;
92 }
93
95}
#define msg(x)
Definition: auth_time.c:54
WPARAM wParam
Definition: combotst.c:138
LPARAM lParam
Definition: combotst.c:139
LRESULT process_dochost_tasks(DocHost *This)
Definition: dochost.c:55
#define WM_DOCHOSTTASK
Definition: ieframe.h:300
static LRESULT resize_window(WebBrowser *This, LONG width, LONG height)
Definition: oleobject.c:43
#define LOWORD(l)
Definition: pedump.c:82
LRESULT WINAPI DefWindowProcW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
#define WM_CREATE
Definition: winuser.h:1636
#define WM_SIZE
Definition: winuser.h:1639
#define WM_SETFOCUS
Definition: winuser.h:1641
BOOL WINAPI SetPropW(_In_ HWND, _In_ LPCWSTR, _In_opt_ HANDLE)
HANDLE WINAPI GetPropW(_In_ HWND, _In_ LPCWSTR)
#define WM_KILLFOCUS
Definition: winuser.h:1642
#define HIWORD(l)
Definition: typedefs.h:247
_In_ LONG _In_ HWND hwnd
Definition: winddi.h:4023

Referenced by create_shell_embedding_hwnd().

◆ SHSetParentHwnd()

HWND WINAPI SHSetParentHwnd ( HWND  hWnd,
HWND  hWndParent 
)

Definition at line 833 of file ordinal.c.

834{
835 TRACE("%p, %p\n", hWnd, hWndParent);
836
838 return NULL;
839
840 if(hWndParent)
842 else
844
846}
HWND hWnd
Definition: settings.c:17
LONG WINAPI SHSetWindowBits(HWND hwnd, INT offset, UINT mask, UINT flags)
Definition: ordinal.c:805
HWND WINAPI SetParent(_In_ HWND, _In_opt_ HWND)
HWND WINAPI GetParent(_In_ HWND)
#define GWL_STYLE
Definition: winuser.h:863

Referenced by activate_inplace(), and OleObject_SetClientSite().

◆ WBOleCommandTarget_AddRef()

static ULONG WINAPI WBOleCommandTarget_AddRef ( IOleCommandTarget *  iface)
static

Definition at line 1196 of file oleobject.c.

1197{
1199 return IUnknown_AddRef(This->hlink_frame.outer);
1200}
static WebBrowser * impl_from_IOleCommandTarget(IOleCommandTarget *iface)
Definition: oleobject.c:1184

◆ WBOleCommandTarget_Exec()

static HRESULT WINAPI WBOleCommandTarget_Exec ( IOleCommandTarget *  iface,
const GUID *  pguidCmdGroup,
DWORD  nCmdID,
DWORD  nCmdexecopt,
VARIANT *  pvaIn,
VARIANT *  pvaOut 
)
static

Definition at line 1234 of file oleobject.c.

1237{
1239 FIXME("(%p)->(%s %ld %ld %s %p)\n", This, debugstr_guid(pguidCmdGroup), nCmdID,
1240 nCmdexecopt, debugstr_variant(pvaIn), pvaOut);
1241 return E_NOTIMPL;
1242}
static const char * debugstr_variant(const VARIANT *var)
Definition: dom.c:505

◆ WBOleCommandTarget_QueryInterface()

static HRESULT WINAPI WBOleCommandTarget_QueryInterface ( IOleCommandTarget *  iface,
REFIID  riid,
void **  ppv 
)
static

Definition at line 1189 of file oleobject.c.

1191{
1193 return IUnknown_QueryInterface(This->hlink_frame.outer, riid, ppv);
1194}

◆ WBOleCommandTarget_QueryStatus()

static HRESULT WINAPI WBOleCommandTarget_QueryStatus ( IOleCommandTarget *  iface,
const GUID *  pguidCmdGroup,
ULONG  cCmds,
OLECMD  prgCmds[],
OLECMDTEXT *  pCmdText 
)
static

Definition at line 1208 of file oleobject.c.

1210{
1212 IOleCommandTarget *cmdtrg;
1213 HRESULT hres;
1214
1215 TRACE("(%p)->(%s %lu %p %p)\n", This, debugstr_guid(pguidCmdGroup), cCmds, prgCmds,
1216 pCmdText);
1217
1218 if(!This->doc_host.document)
1219 return 0x80040104;
1220
1221 /* NOTE: There are probably some commands that we should handle here
1222 * instead of forwarding to document object. */
1223
1224 hres = IUnknown_QueryInterface(This->doc_host.document, &IID_IOleCommandTarget, (void**)&cmdtrg);
1225 if(FAILED(hres))
1226 return hres;
1227
1228 hres = IOleCommandTarget_QueryStatus(cmdtrg, pguidCmdGroup, cCmds, prgCmds, pCmdText);
1229 IOleCommandTarget_Release(cmdtrg);
1230
1231 return hres;
1232}

◆ WBOleCommandTarget_Release()

static ULONG WINAPI WBOleCommandTarget_Release ( IOleCommandTarget *  iface)
static

Definition at line 1202 of file oleobject.c.

1203{
1205 return IUnknown_Release(This->hlink_frame.outer);
1206}

◆ WebBrowser_OleObject_Destroy()

void WebBrowser_OleObject_Destroy ( WebBrowser *  This)

Definition at line 1275 of file oleobject.c.

1276{
1278}

Referenced by WebBrowser_Release().

◆ WebBrowser_OleObject_Init()

void WebBrowser_OleObject_Init ( WebBrowser *  This)

Definition at line 1252 of file oleobject.c.

1253{
1254 DWORD dpi_x;
1255 DWORD dpi_y;
1256 HDC hdc;
1257
1258 /* default aspect ratio is 96dpi / 96dpi */
1259 hdc = GetDC(0);
1260 dpi_x = GetDeviceCaps(hdc, LOGPIXELSX);
1261 dpi_y = GetDeviceCaps(hdc, LOGPIXELSY);
1262 ReleaseDC(0, hdc);
1263
1264 This->IOleObject_iface.lpVtbl = &OleObjectVtbl;
1265 This->IOleInPlaceObject_iface.lpVtbl = &OleInPlaceObjectVtbl;
1266 This->IOleControl_iface.lpVtbl = &OleControlVtbl;
1267 This->IOleInPlaceActiveObject_iface.lpVtbl = &OleInPlaceActiveObjectVtbl;
1268 This->IOleCommandTarget_iface.lpVtbl = &OleCommandTargetVtbl;
1269
1270 /* Default size is 50x20 pixels, in himetric units */
1271 This->extent.cx = MulDiv( 50, 2540, dpi_x );
1272 This->extent.cy = MulDiv( 20, 2540, dpi_y );
1273}
unsigned long DWORD
Definition: ntddk_ex.h:95
HDC hdc
Definition: main.c:9
static HDC
Definition: imagelist.c:88
INT WINAPI MulDiv(INT nNumber, INT nNumerator, INT nDenominator)
Definition: muldiv.c:25
static const IOleInPlaceObjectVtbl OleInPlaceObjectVtbl
Definition: oleobject.c:977
static const IOleInPlaceActiveObjectVtbl OleInPlaceActiveObjectVtbl
Definition: oleobject.c:1171
static const IOleObjectVtbl OleObjectVtbl
Definition: oleobject.c:853
static const IOleCommandTargetVtbl OleCommandTargetVtbl
Definition: oleobject.c:1244
static const IOleControlVtbl OleControlVtbl
Definition: oleobject.c:1066
int WINAPI ReleaseDC(_In_opt_ HWND, _In_ HDC)
HDC WINAPI GetDC(_In_opt_ HWND)
int WINAPI GetDeviceCaps(_In_opt_ HDC, _In_ int)
#define LOGPIXELSY
Definition: wingdi.h:719
#define LOGPIXELSX
Definition: wingdi.h:718

Referenced by create_webbrowser().

◆ WINE_DEFAULT_DEBUG_CHANNEL()

WINE_DEFAULT_DEBUG_CHANNEL ( ieframe  )

Variable Documentation

◆ EnumOLEVERBVtbl

const IEnumOLEVERBVtbl EnumOLEVERBVtbl
static
Initial value:
= {
}
static HRESULT WINAPI EnumOLEVERB_QueryInterface(IEnumOLEVERB *iface, REFIID riid, void **ppv)
Definition: oleobject.c:339
static ULONG WINAPI EnumOLEVERB_AddRef(IEnumOLEVERB *iface)
Definition: oleobject.c:359
static ULONG WINAPI EnumOLEVERB_Release(IEnumOLEVERB *iface)
Definition: oleobject.c:369
static HRESULT WINAPI EnumOLEVERB_Reset(IEnumOLEVERB *iface)
Definition: oleobject.c:410
static HRESULT WINAPI EnumOLEVERB_Next(IEnumOLEVERB *iface, ULONG celt, OLEVERB *rgelt, ULONG *pceltFetched)
Definition: oleobject.c:382
static HRESULT WINAPI EnumOLEVERB_Clone(IEnumOLEVERB *iface, IEnumOLEVERB **ppenum)
Definition: oleobject.c:420
static HRESULT WINAPI EnumOLEVERB_Skip(IEnumOLEVERB *iface, ULONG celt)
Definition: oleobject.c:403

Definition at line 427 of file oleobject.c.

Referenced by OleObject_EnumVerbs().

◆ OleCommandTargetVtbl

const IOleCommandTargetVtbl OleCommandTargetVtbl
static
Initial value:
= {
}
static HRESULT WINAPI WBOleCommandTarget_QueryStatus(IOleCommandTarget *iface, const GUID *pguidCmdGroup, ULONG cCmds, OLECMD prgCmds[], OLECMDTEXT *pCmdText)
Definition: oleobject.c:1208
static HRESULT WINAPI WBOleCommandTarget_QueryInterface(IOleCommandTarget *iface, REFIID riid, void **ppv)
Definition: oleobject.c:1189
static ULONG WINAPI WBOleCommandTarget_AddRef(IOleCommandTarget *iface)
Definition: oleobject.c:1196
static ULONG WINAPI WBOleCommandTarget_Release(IOleCommandTarget *iface)
Definition: oleobject.c:1202
static HRESULT WINAPI WBOleCommandTarget_Exec(IOleCommandTarget *iface, const GUID *pguidCmdGroup, DWORD nCmdID, DWORD nCmdexecopt, VARIANT *pvaIn, VARIANT *pvaOut)
Definition: oleobject.c:1234

Definition at line 1244 of file oleobject.c.

Referenced by WebBrowser_OleObject_Init().

◆ OleControlVtbl

const IOleControlVtbl OleControlVtbl
static
Initial value:
=
{
}
static HRESULT WINAPI OleControl_FreezeEvents(IOleControl *iface, BOOL bFreeze)
Definition: oleobject.c:1059
static HRESULT WINAPI OleControl_GetControlInfo(IOleControl *iface, LPCONTROLINFO pCI)
Definition: oleobject.c:1018
static HRESULT WINAPI OleControl_OnAmbientPropertyChange(IOleControl *iface, DISPID dispID)
Definition: oleobject.c:1035
static ULONG WINAPI OleControl_Release(IOleControl *iface)
Definition: oleobject.c:1012
static ULONG WINAPI OleControl_AddRef(IOleControl *iface)
Definition: oleobject.c:1006
static HRESULT WINAPI OleControl_QueryInterface(IOleControl *iface, REFIID riid, LPVOID *ppobj)
Definition: oleobject.c:999
static HRESULT WINAPI OleControl_OnMnemonic(IOleControl *iface, struct tagMSG *pMsg)
Definition: oleobject.c:1028

Definition at line 1066 of file oleobject.c.

Referenced by WebBrowser_OleObject_Init().

◆ OleInPlaceActiveObjectVtbl

const IOleInPlaceActiveObjectVtbl OleInPlaceActiveObjectVtbl
static
Initial value:
= {
}
static HRESULT WINAPI InPlaceActiveObject_GetWindow(IOleInPlaceActiveObject *iface, HWND *phwnd)
Definition: oleobject.c:1101
static HRESULT WINAPI InPlaceActiveObject_OnDocWindowActivate(IOleInPlaceActiveObject *iface, BOOL fActivate)
Definition: oleobject.c:1147
static HRESULT WINAPI InPlaceActiveObject_ContextSensitiveHelp(IOleInPlaceActiveObject *iface, BOOL fEnterMode)
Definition: oleobject.c:1108
static HRESULT WINAPI InPlaceActiveObject_OnFrameWindowActivate(IOleInPlaceActiveObject *iface, BOOL fActivate)
Definition: oleobject.c:1139
static ULONG WINAPI InPlaceActiveObject_AddRef(IOleInPlaceActiveObject *iface)
Definition: oleobject.c:1089
static ULONG WINAPI InPlaceActiveObject_Release(IOleInPlaceActiveObject *iface)
Definition: oleobject.c:1095
static HRESULT WINAPI InPlaceActiveObject_ResizeBorder(IOleInPlaceActiveObject *iface, LPCRECT lprcBorder, IOleInPlaceUIWindow *pUIWindow, BOOL fFrameWindow)
Definition: oleobject.c:1155
static HRESULT WINAPI InPlaceActiveObject_QueryInterface(IOleInPlaceActiveObject *iface, REFIID riid, void **ppv)
Definition: oleobject.c:1082
static HRESULT WINAPI InPlaceActiveObject_EnableModeless(IOleInPlaceActiveObject *iface, BOOL fEnable)
Definition: oleobject.c:1163
static HRESULT WINAPI InPlaceActiveObject_TranslateAccelerator(IOleInPlaceActiveObject *iface, LPMSG lpmsg)
Definition: oleobject.c:1115

Definition at line 1171 of file oleobject.c.

Referenced by WebBrowser_OleObject_Init().

◆ OleInPlaceObjectVtbl

const IOleInPlaceObjectVtbl OleInPlaceObjectVtbl
static
Initial value:
=
{
}
static HRESULT WINAPI OleInPlaceObject_GetWindow(IOleInPlaceObject *iface, HWND *phwnd)
Definition: oleobject.c:909
static ULONG WINAPI OleInPlaceObject_Release(IOleInPlaceObject *iface)
Definition: oleobject.c:903
static HRESULT WINAPI OleInPlaceObject_QueryInterface(IOleInPlaceObject *iface, REFIID riid, LPVOID *ppobj)
Definition: oleobject.c:890
static HRESULT WINAPI OleInPlaceObject_ContextSensitiveHelp(IOleInPlaceObject *iface, BOOL fEnterMode)
Definition: oleobject.c:919
static HRESULT WINAPI OleInPlaceObject_ReactivateAndUndo(IOleInPlaceObject *iface)
Definition: oleobject.c:970
static HRESULT WINAPI OleInPlaceObject_InPlaceDeactivate(IOleInPlaceObject *iface)
Definition: oleobject.c:927
static ULONG WINAPI OleInPlaceObject_AddRef(IOleInPlaceObject *iface)
Definition: oleobject.c:897
static HRESULT WINAPI OleInPlaceObject_SetObjectRects(IOleInPlaceObject *iface, LPCRECT lprcPosRect, LPCRECT lprcClipRect)
Definition: oleobject.c:947
static HRESULT WINAPI OleInPlaceObject_UIDeactivate(IOleInPlaceObject *iface)
Definition: oleobject.c:940

Definition at line 977 of file oleobject.c.

Referenced by WebBrowser_OleObject_Init().

◆ OleObjectVtbl

const IOleObjectVtbl OleObjectVtbl
static
Initial value:
=
{
}
static HRESULT WINAPI OleObject_GetMiscStatus(IOleObject *iface, DWORD dwAspect, DWORD *pdwStatus)
Definition: oleobject.c:834
static HRESULT WINAPI OleObject_IsUpToDate(IOleObject *iface)
Definition: oleobject.c:740
static HRESULT WINAPI OleObject_Advise(IOleObject *iface, IAdviseSink *pAdvSink, DWORD *pdwConnection)
Definition: oleobject.c:787
static HRESULT WINAPI OleObject_GetMoniker(IOleObject *iface, DWORD dwAssign, DWORD dwWhichMoniker, LPMONIKER *ppmk)
Definition: oleobject.c:645
static HRESULT WINAPI OleObject_QueryInterface(IOleObject *iface, REFIID riid, void **ppv)
Definition: oleobject.c:446
static HRESULT WINAPI OleObject_DoVerb(IOleObject *iface, LONG iVerb, struct tagMSG *lpmsg, LPOLECLIENTSITE pActiveSite, LONG lindex, HWND hwndParent, LPCRECT lprcPosRect)
Definition: oleobject.c:669
static HRESULT WINAPI OleObject_EnumAdvise(IOleObject *iface, IEnumSTATDATA **ppenumAdvise)
Definition: oleobject.c:824
static ULONG WINAPI OleObject_AddRef(IOleObject *iface)
Definition: oleobject.c:452
static HRESULT WINAPI OleObject_GetClipboardData(IOleObject *iface, DWORD dwReserved, LPDATAOBJECT *ppDataObject)
Definition: oleobject.c:661
static HRESULT WINAPI OleObject_GetExtent(IOleObject *iface, DWORD dwDrawAspect, SIZEL *psizel)
Definition: oleobject.c:776
static HRESULT WINAPI OleObject_GetUserType(IOleObject *iface, DWORD dwFormOfType, LPOLESTR *pszUserType)
Definition: oleobject.c:757
static ULONG WINAPI OleObject_Release(IOleObject *iface)
Definition: oleobject.c:458
static HRESULT WINAPI OleObject_SetHostNames(IOleObject *iface, LPCOLESTR szContainerApp, LPCOLESTR szContainerObj)
Definition: oleobject.c:579
static HRESULT WINAPI OleObject_GetUserClassID(IOleObject *iface, CLSID *pClsid)
Definition: oleobject.c:747
static HRESULT WINAPI OleObject_GetClientSite(IOleObject *iface, LPOLECLIENTSITE *ppClientSite)
Definition: oleobject.c:563
static HRESULT WINAPI OleObject_SetMoniker(IOleObject *iface, DWORD dwWhichMoniker, IMoniker *pmk)
Definition: oleobject.c:638
static HRESULT WINAPI OleObject_EnumVerbs(IOleObject *iface, IEnumOLEVERB **ppEnumOleVerb)
Definition: oleobject.c:714
static HRESULT WINAPI OleObject_Update(IOleObject *iface)
Definition: oleobject.c:733
static HRESULT WINAPI OleObject_SetExtent(IOleObject *iface, DWORD dwDrawAspect, SIZEL *psizel)
Definition: oleobject.c:765
static HRESULT WINAPI OleObject_SetClientSite(IOleObject *iface, LPOLECLIENTSITE pClientSite)
Definition: oleobject.c:464
static HRESULT WINAPI OleObject_InitFromData(IOleObject *iface, LPDATAOBJECT pDataObject, BOOL fCreation, DWORD dwReserved)
Definition: oleobject.c:653
static HRESULT WINAPI OleObject_SetColorScheme(IOleObject *iface, LOGPALETTE *pLogpal)
Definition: oleobject.c:846
static HRESULT WINAPI OleObject_Unadvise(IOleObject *iface, DWORD dwConnection)
Definition: oleobject.c:812
static HRESULT WINAPI OleObject_Close(IOleObject *iface, DWORD dwSaveOption)
Definition: oleobject.c:610

Definition at line 853 of file oleobject.c.

Referenced by WebBrowser_OleObject_Init().

◆ shell_embedding_atom

ATOM shell_embedding_atom = 0
static

Definition at line 41 of file oleobject.c.

Referenced by create_shell_embedding_hwnd().