ReactOS 0.4.15-dev-8236-g99f0937
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 EnumOLEVERBimpl_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 WebBrowserimpl_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 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 WebBrowserimpl_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 WebBrowserimpl_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 WebBrowserimpl_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 WebBrowserimpl_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: %08x\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: debug.h:115
#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:465
const GUID IID_IOleInPlaceSite
HWND WINAPI SHSetParentHwnd(HWND hWnd, HWND hWndParent)
Definition: ordinal.c:1154
BOOL WINAPI SetWindowPos(_In_ HWND, _In_opt_ HWND, _In_ int, _In_ int, _In_ int, _In_ int, _In_ UINT)
#define SWP_SHOWWINDOW
Definition: winuser.h:1248
#define SWP_NOZORDER
Definition: winuser.h:1247

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 IOleInPlaceSiteEx_OnUIActivate(This->inplace);
218
219 if(This->doc_host.frame)
220 IOleInPlaceFrame_SetActiveObject(This->doc_host.frame, &This->IOleInPlaceActiveObject_iface, wszitem);
221 if(This->uiwindow)
222 IOleInPlaceUIWindow_SetActiveObject(This->uiwindow, &This->IOleInPlaceActiveObject_iface, wszitem);
223
224 if(This->doc_host.frame)
225 IOleInPlaceFrame_SetMenu(This->doc_host.frame, NULL, NULL, This->shell_embedding_hwnd);
226
227 SetFocus(This->shell_embedding_hwnd);
229
230 return S_OK;
231}
#define TRUE
Definition: types.h:120
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
BOOL WINAPI ShowWindow(_In_ HWND, _In_ int)
HWND WINAPI SetFocus(_In_opt_ HWND)
#define SW_SHOW
Definition: winuser.h:775
__wchar_t WCHAR
Definition: xmlstorage.h:180

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 TRACE(s)
Definition: solgame.cpp:4
HINSTANCE hInstance
Definition: winuser.h:3221
#define COLOR_WINDOW
Definition: winuser.h:918
#define CS_DBLCLKS
Definition: winuser.h:651
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

Referenced by OleObject_SetClientSite().

◆ EnumOLEVERB_AddRef()

static ULONG WINAPI EnumOLEVERB_AddRef ( IEnumOLEVERB iface)
static

Definition at line 352 of file oleobject.c.

353{
356
357 TRACE("(%p) ref=%d\n", This, ref);
358
359 return ref;
360}
#define InterlockedIncrement
Definition: armddk.h:53
static EnumOLEVERB * impl_from_IEnumOLEVERB(IEnumOLEVERB *iface)
Definition: oleobject.c:327
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 413 of file oleobject.c.

414{
416 FIXME("(%p)->(%p)\n", This, ppenum);
417 return E_NOTIMPL;
418}
#define FIXME(fmt,...)
Definition: debug.h:114
#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 375 of file oleobject.c.

376{
378
379 static const OLEVERB verbs[] =
381
382 TRACE("(%p)->(%u %p %p)\n", This, celt, rgelt, pceltFetched);
383
384 /* There are a few problems with this implementation, but that's how it seems to work in native. See tests. */
385 if(pceltFetched)
386 *pceltFetched = 0;
387
388 if(This->iter == ARRAY_SIZE(verbs))
389 return S_FALSE;
390
391 if(celt)
392 *rgelt = verbs[This->iter++];
393 return S_OK;
394}
#define ARRAY_SIZE(A)
Definition: main.h:33
#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:2357

◆ EnumOLEVERB_QueryInterface()

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

Definition at line 332 of file oleobject.c.

333{
335
337 TRACE("(%p)->(IID_IUnknown %p)\n", This, ppv);
338 *ppv = &This->IEnumOLEVERB_iface;
339 }else if(IsEqualGUID(&IID_IEnumOLEVERB, riid)) {
340 TRACE("(%p)->(IID_IEnumOLEVERB %p)\n", This, ppv);
341 *ppv = &This->IEnumOLEVERB_iface;
342 }else {
343 WARN("(%p)->(%s %p)\n", This, debugstr_guid(riid), ppv);
344 *ppv = NULL;
345 return E_NOINTERFACE;
346 }
347
348 IUnknown_AddRef((IUnknown*)*ppv);
349 return S_OK;
350}
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:2364

◆ EnumOLEVERB_Release()

static ULONG WINAPI EnumOLEVERB_Release ( IEnumOLEVERB iface)
static

Definition at line 362 of file oleobject.c.

363{
366
367 TRACE("(%p) ref=%d\n", This, ref);
368
369 if(!ref)
371
372 return ref;
373}
static BOOL heap_free(void *mem)
Definition: appwiz.h:76
#define InterlockedDecrement
Definition: armddk.h:52

◆ EnumOLEVERB_Reset()

static HRESULT WINAPI EnumOLEVERB_Reset ( IEnumOLEVERB iface)
static

Definition at line 403 of file oleobject.c.

404{
406
407 TRACE("(%p)\n", This);
408
409 This->iter = 0;
410 return S_OK;
411}

◆ EnumOLEVERB_Skip()

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

Definition at line 396 of file oleobject.c.

397{
399 TRACE("(%p)->(%u)\n", This, celt);
400 return S_OK;
401}

◆ get_client_disp_property()

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

Definition at line 233 of file oleobject.c.

234{
235 IDispatch *disp = NULL;
236 DISPPARAMS dispparams = {NULL, 0};
238
240
241 if(!client)
242 return S_OK;
243
244 hres = IOleClientSite_QueryInterface(client, &IID_IDispatch, (void**)&disp);
245 if(FAILED(hres)) {
246 TRACE("Could not get IDispatch\n");
247 return hres;
248 }
249
250 hres = IDispatch_Invoke(disp, dispid, &IID_NULL, LOCALE_SYSTEM_DEFAULT,
251 DISPATCH_PROPERTYGET, &dispparams, res, NULL, NULL);
252
253 IDispatch_Release(disp);
254
255 return hres;
256}
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:41
void WINAPI VariantInit(VARIANTARG *pVarg)
Definition: variant.c:568

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 327 of file oleobject.c.

328{
329 return CONTAINING_RECORD(iface, EnumOLEVERB, IEnumOLEVERB_iface);
330}
#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 1036 of file oleobject.c.

1037{
1039 return IWebBrowser2_AddRef(&This->IWebBrowser2_iface);
1040}
static WebBrowser * impl_from_IOleInPlaceActiveObject(IOleInPlaceActiveObject *iface)
Definition: oleobject.c:1024

◆ InPlaceActiveObject_ContextSensitiveHelp()

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

Definition at line 1055 of file oleobject.c.

1057{
1059 return IOleInPlaceObject_ContextSensitiveHelp(&This->IOleInPlaceObject_iface, fEnterMode);
1060}

◆ InPlaceActiveObject_EnableModeless()

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

Definition at line 1110 of file oleobject.c.

1112{
1114 FIXME("(%p)->(%x)\n", This, fEnable);
1115 return E_NOTIMPL;
1116}

◆ InPlaceActiveObject_GetWindow()

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

Definition at line 1048 of file oleobject.c.

1050{
1052 return IOleInPlaceObject_GetWindow(&This->IOleInPlaceObject_iface, phwnd);
1053}

◆ InPlaceActiveObject_OnDocWindowActivate()

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

Definition at line 1094 of file oleobject.c.

1096{
1098 FIXME("(%p)->(%x)\n", This, fActivate);
1099 return E_NOTIMPL;
1100}

◆ InPlaceActiveObject_OnFrameWindowActivate()

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

Definition at line 1086 of file oleobject.c.

1088{
1090 FIXME("(%p)->(%x)\n", This, fActivate);
1091 return E_NOTIMPL;
1092}

◆ InPlaceActiveObject_QueryInterface()

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

Definition at line 1029 of file oleobject.c.

1031{
1033 return IWebBrowser2_QueryInterface(&This->IWebBrowser2_iface, riid, ppv);
1034}

◆ InPlaceActiveObject_Release()

static ULONG WINAPI InPlaceActiveObject_Release ( IOleInPlaceActiveObject iface)
static

Definition at line 1042 of file oleobject.c.

1043{
1045 return IWebBrowser2_Release(&This->IWebBrowser2_iface);
1046}

◆ InPlaceActiveObject_ResizeBorder()

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

Definition at line 1102 of file oleobject.c.

1104{
1106 FIXME("(%p)->(%p %p %x)\n", This, lprcBorder, pUIWindow, fFrameWindow);
1107 return E_NOTIMPL;
1108}

◆ InPlaceActiveObject_TranslateAccelerator()

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

Definition at line 1062 of file oleobject.c.

1064{
1066 IOleInPlaceActiveObject *activeobj;
1067 HRESULT hr = S_FALSE;
1068
1069 TRACE("(%p)->(%p)\n", This, lpmsg);
1070
1071 if(This->doc_host.document) {
1072 if(SUCCEEDED(IUnknown_QueryInterface(This->doc_host.document,
1074 (void**)&activeobj))) {
1075 hr = IOleInPlaceActiveObject_TranslateAccelerator(activeobj, lpmsg);
1076 IOleInPlaceActiveObject_Release(activeobj);
1077 }
1078 }
1079
1080 if(SUCCEEDED(hr))
1081 return hr;
1082 else
1083 return S_FALSE;
1084}
const GUID IID_IOleInPlaceActiveObject
HRESULT hr
Definition: shlfolder.c:183

◆ 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(), OleObject_Close(), and shell_embedding_proc().

◆ OleControl_AddRef()

static ULONG WINAPI OleControl_AddRef ( IOleControl iface)
static

Definition at line 953 of file oleobject.c.

954{
956 return IWebBrowser2_AddRef(&This->IWebBrowser2_iface);
957}
static WebBrowser * impl_from_IOleControl(IOleControl *iface)
Definition: oleobject.c:941

◆ OleControl_FreezeEvents()

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

Definition at line 1006 of file oleobject.c.

1007{
1009 FIXME("(%p)->(%x)\n", This, bFreeze);
1010 return E_NOTIMPL;
1011}

◆ OleControl_GetControlInfo()

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

Definition at line 965 of file oleobject.c.

966{
968
969 TRACE("(%p)->(%p)\n", This, pCI);
970
971 /* Tests show that this function should be not implemented */
972 return E_NOTIMPL;
973}

◆ OleControl_OnAmbientPropertyChange()

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

Definition at line 982 of file oleobject.c.

983{
985
986 TRACE("(%p)->(%d)\n", This, dispID);
987
988 switch(dispID) {
989 case DISPID_UNKNOWN:
990 /* Unknown means multiple properties changed, so check them all.
991 * BUT the Webbrowser OleControl object doesn't appear to do this.
992 */
993 return S_OK;
995 return S_OK;
999 return on_silent_change(This);
1000 }
1001
1002 FIXME("Unknown dispID %d\n", dispID);
1003 return E_NOTIMPL;
1004}
#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:272
static HRESULT on_offlineconnected_change(WebBrowser *This)
Definition: oleobject.c:258

◆ OleControl_OnMnemonic()

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

Definition at line 975 of file oleobject.c.

976{
978 FIXME("(%p)->(%p)\n", This, pMsg);
979 return E_NOTIMPL;
980}

◆ OleControl_QueryInterface()

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

Definition at line 946 of file oleobject.c.

948{
950 return IWebBrowser2_QueryInterface(&This->IWebBrowser2_iface, riid, ppobj);
951}

◆ OleControl_Release()

static ULONG WINAPI OleControl_Release ( IOleControl iface)
static

Definition at line 959 of file oleobject.c.

960{
962 return IWebBrowser2_Release(&This->IWebBrowser2_iface);
963}

◆ OleInPlaceObject_AddRef()

static ULONG WINAPI OleInPlaceObject_AddRef ( IOleInPlaceObject iface)
static

Definition at line 844 of file oleobject.c.

845{
847 return IWebBrowser2_AddRef(&This->IWebBrowser2_iface);
848}
static WebBrowser * impl_from_IOleInPlaceObject(IOleInPlaceObject *iface)
Definition: oleobject.c:832

◆ OleInPlaceObject_ContextSensitiveHelp()

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

Definition at line 866 of file oleobject.c.

868{
870 FIXME("(%p)->(%x)\n", This, fEnterMode);
871 return E_NOTIMPL;
872}

◆ OleInPlaceObject_GetWindow()

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

Definition at line 856 of file oleobject.c.

857{
859
860 TRACE("(%p)->(%p)\n", This, phwnd);
861
862 *phwnd = This->shell_embedding_hwnd;
863 return S_OK;
864}

◆ OleInPlaceObject_InPlaceDeactivate()

static HRESULT WINAPI OleInPlaceObject_InPlaceDeactivate ( IOleInPlaceObject iface)
static

Definition at line 874 of file oleobject.c.

875{
877 FIXME("(%p)\n", This);
878
879 if(This->inplace) {
880 IOleInPlaceSiteEx_Release(This->inplace);
881 This->inplace = NULL;
882 }
883
884 return S_OK;
885}

◆ OleInPlaceObject_QueryInterface()

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

Definition at line 837 of file oleobject.c.

839{
841 return IWebBrowser2_QueryInterface(&This->IWebBrowser2_iface, riid, ppobj);
842}

◆ OleInPlaceObject_ReactivateAndUndo()

static HRESULT WINAPI OleInPlaceObject_ReactivateAndUndo ( IOleInPlaceObject iface)
static

Definition at line 917 of file oleobject.c.

918{
920 FIXME("(%p)\n", This);
921 return E_NOTIMPL;
922}

◆ OleInPlaceObject_Release()

static ULONG WINAPI OleInPlaceObject_Release ( IOleInPlaceObject iface)
static

Definition at line 850 of file oleobject.c.

851{
853 return IWebBrowser2_Release(&This->IWebBrowser2_iface);
854}

◆ OleInPlaceObject_SetObjectRects()

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

Definition at line 894 of file oleobject.c.

896{
898
899 TRACE("(%p)->(%s %s)\n", This, wine_dbgstr_rect(lprcPosRect), wine_dbgstr_rect(lprcClipRect));
900
901 This->pos_rect = *lprcPosRect;
902
903 if(lprcClipRect)
904 This->clip_rect = *lprcClipRect;
905
906 if(This->shell_embedding_hwnd) {
907 SetWindowPos(This->shell_embedding_hwnd, NULL,
908 lprcPosRect->left, lprcPosRect->top,
909 lprcPosRect->right-lprcPosRect->left,
910 lprcPosRect->bottom-lprcPosRect->top,
912 }
913
914 return S_OK;
915}
static const char * wine_dbgstr_rect(const RECT *prc)
Definition: atltest.h:160
LONG right
Definition: windef.h:308
LONG bottom
Definition: windef.h:309
LONG top
Definition: windef.h:307
LONG left
Definition: windef.h:306
#define SWP_NOACTIVATE
Definition: winuser.h:1242

◆ OleInPlaceObject_UIDeactivate()

static HRESULT WINAPI OleInPlaceObject_UIDeactivate ( IOleInPlaceObject iface)
static

Definition at line 887 of file oleobject.c.

888{
890 FIXME("(%p)\n", This);
891 return E_NOTIMPL;
892}

◆ OleObject_AddRef()

static ULONG WINAPI OleObject_AddRef ( IOleObject iface)
static

Definition at line 445 of file oleobject.c.

446{
448 return IWebBrowser2_AddRef(&This->IWebBrowser2_iface);
449}
static WebBrowser * impl_from_IOleObject(IOleObject *iface)
Definition: oleobject.c:434

◆ OleObject_Advise()

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

Definition at line 759 of file oleobject.c.

761{
763 FIXME("(%p)->(%p, %p)\n", This, pAdvSink, pdwConnection);
764 return E_NOTIMPL;
765}

◆ OleObject_Close()

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

Definition at line 582 of file oleobject.c.

583{
587
588 TRACE("(%p)->(%d)\n", This, dwSaveOption);
589
590 if(dwSaveOption != OLECLOSE_NOSAVE) {
591 FIXME("unimplemented flag: %x\n", dwSaveOption);
592 return E_NOTIMPL;
593 }
594
595 if(This->doc_host.frame)
596 IOleInPlaceFrame_SetActiveObject(This->doc_host.frame, NULL, NULL);
597
598 if(This->uiwindow)
599 IOleInPlaceUIWindow_SetActiveObject(This->uiwindow, NULL, NULL);
600
601 if(This->inplace)
602 IOleInPlaceSiteEx_OnUIDeactivate(This->inplace, FALSE);
604 if(This->inplace)
605 IOleInPlaceSiteEx_OnInPlaceDeactivate(This->inplace);
606
607 /* store old client site - we need to restore it in DoVerb */
608 client = This->client;
609 if(This->client)
610 IOleClientSite_AddRef(This->client);
611 hres = IOleObject_SetClientSite(iface, NULL);
612 This->client_closed = client;
613 return hres;
614}
#define FALSE
Definition: types.h:117

◆ 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 647 of file oleobject.c.

649{
651
652 TRACE("(%p)->(%d %p %p %d %p %s)\n", This, iVerb, lpmsg, pActiveSite, lindex, hwndParent,
653 wine_dbgstr_rect(lprcPosRect));
654
655 /* restore closed client site if we have one */
656 if(!This->client && This->client_closed) {
657 IOleClientSite *client = This->client_closed;
658 This->client_closed = NULL;
659 IOleObject_SetClientSite(iface, client);
660 IOleClientSite_Release(client);
661 }
662
663 switch (iVerb)
664 {
665 case OLEIVERB_SHOW:
666 TRACE("OLEIVERB_SHOW\n");
667 return activate_ui(This, pActiveSite);
669 TRACE("OLEIVERB_UIACTIVATE\n");
670 return activate_ui(This, pActiveSite);
672 TRACE("OLEIVERB_INPLACEACTIVATE\n");
673 return activate_inplace(This, pActiveSite);
674 case OLEIVERB_HIDE:
675 TRACE("OLEIVERB_HIDE\n");
676 if(This->inplace)
677 IOleInPlaceSiteEx_OnInPlaceDeactivate(This->inplace);
678 if(This->shell_embedding_hwnd)
679 ShowWindow(This->shell_embedding_hwnd, SW_HIDE);
680 return S_OK;
681 default:
682 FIXME("stub for %d\n", iVerb);
683 break;
684 }
685
686 return E_NOTIMPL;
687}
static HWND hwndParent
Definition: cryptui.c:300
static HRESULT activate_ui(WebBrowser *This, IOleClientSite *active_site)
Definition: oleobject.c:200
#define SW_HIDE
Definition: winuser.h:768

◆ OleObject_EnumAdvise()

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

Definition at line 774 of file oleobject.c.

775{
777 FIXME("(%p)->(%p)\n", This, ppenumAdvise);
778 return S_OK;
779}

◆ OleObject_EnumVerbs()

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

Definition at line 689 of file oleobject.c.

690{
693
694 TRACE("(%p)->(%p)\n", This, ppEnumOleVerb);
695
696 ret = heap_alloc(sizeof(*ret));
697 if(!ret)
698 return E_OUTOFMEMORY;
699
700 ret->IEnumOLEVERB_iface.lpVtbl = &EnumOLEVERBVtbl;
701 ret->ref = 1;
702 ret->iter = 0;
703
704 *ppEnumOleVerb = &ret->IEnumOLEVERB_iface;
705 return S_OK;
706}
static void * heap_alloc(size_t len)
Definition: appwiz.h:66
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
static const IEnumOLEVERBVtbl EnumOLEVERBVtbl
Definition: oleobject.c:420
int ret

◆ OleObject_GetClientSite()

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

Definition at line 555 of file oleobject.c.

556{
558
559 TRACE("(%p)->(%p)\n", This, ppClientSite);
560
561 if(!ppClientSite)
562 return E_INVALIDARG;
563
564 if(This->client)
565 IOleClientSite_AddRef(This->client);
566 *ppClientSite = This->client;
567
568 return S_OK;
569}

◆ OleObject_GetClipboardData()

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

Definition at line 639 of file oleobject.c.

641{
643 FIXME("(%p)->(%d, %p)\n", This, dwReserved, ppDataObject);
644 return E_NOTIMPL;
645}
_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 748 of file oleobject.c.

749{
751
752 TRACE("(%p)->(%x, %p)\n", This, dwDrawAspect, psizel);
753
754 /* Tests show that dwDrawAspect is ignored */
755 *psizel = This->extent;
756 return S_OK;
757}

◆ OleObject_GetMiscStatus()

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

Definition at line 781 of file oleobject.c.

782{
784
785 TRACE("(%p)->(%x, %p)\n", This, dwAspect, pdwStatus);
786
789
790 return S_OK;
791}
@ OLEMISC_INSIDEOUT
Definition: actctx.c:87
@ OLEMISC_ACTIVATEWHENVISIBLE
Definition: actctx.c:88
@ OLEMISC_SETCLIENTSITEFIRST
Definition: actctx.c:97
@ OLEMISC_RECOMPOSEONRESIZE
Definition: actctx.c:80
@ OLEMISC_CANTLINKINSIDE
Definition: actctx.c:84

◆ OleObject_GetMoniker()

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

Definition at line 623 of file oleobject.c.

625{
627 FIXME("(%p)->(%d, %d, %p)\n", This, dwAssign, dwWhichMoniker, ppmk);
628 return E_NOTIMPL;
629}

◆ OleObject_GetUserClassID()

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

Definition at line 722 of file oleobject.c.

723{
725 FIXME("(%p)->(%p)\n", This, pClsid);
726 return E_NOTIMPL;
727}

◆ OleObject_GetUserType()

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

Definition at line 729 of file oleobject.c.

731{
733 TRACE("(%p, %d, %p)\n", This, dwFormOfType, pszUserType);
734 return OleRegGetUserType(&CLSID_WebBrowser, dwFormOfType, pszUserType);
735}
HRESULT WINAPI OleRegGetUserType(REFCLSID clsid, DWORD form, LPOLESTR *usertype)
Definition: ole2.c:678

◆ OleObject_InitFromData()

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

Definition at line 631 of file oleobject.c.

633{
635 FIXME("(%p)->(%p, %d, %d)\n", This, pDataObject, fCreation, dwReserved);
636 return E_NOTIMPL;
637}

◆ OleObject_IsUpToDate()

static HRESULT WINAPI OleObject_IsUpToDate ( IOleObject iface)
static

Definition at line 715 of file oleobject.c.

716{
718 FIXME("(%p)\n", This);
719 return E_NOTIMPL;
720}

◆ OleObject_QueryInterface()

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

Definition at line 439 of file oleobject.c.

440{
442 return IWebBrowser2_QueryInterface(&This->IWebBrowser2_iface, riid, ppv);
443}

◆ OleObject_Release()

static ULONG WINAPI OleObject_Release ( IOleObject iface)
static

Definition at line 451 of file oleobject.c.

452{
454 return IWebBrowser2_Release(&This->IWebBrowser2_iface);
455}

◆ OleObject_SetClientSite()

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

Definition at line 457 of file oleobject.c.

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

◆ OleObject_SetColorScheme()

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

Definition at line 793 of file oleobject.c.

794{
796 FIXME("(%p)->(%p)\n", This, pLogpal);
797 return E_NOTIMPL;
798}

◆ OleObject_SetExtent()

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

Definition at line 737 of file oleobject.c.

738{
740
741 TRACE("(%p)->(%x %p)\n", This, dwDrawAspect, psizel);
742
743 /* Tests show that dwDrawAspect is ignored */
744 This->extent = *psizel;
745 return S_OK;
746}

◆ OleObject_SetHostNames()

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

Definition at line 571 of file oleobject.c.

573{
575
576 TRACE("(%p)->(%s, %s)\n", This, debugstr_w(szContainerApp), debugstr_w(szContainerObj));
577
578 /* We have nothing to do here. */
579 return S_OK;
580}
#define debugstr_w
Definition: kernel32.h:32

◆ OleObject_SetMoniker()

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

Definition at line 616 of file oleobject.c.

617{
619 FIXME("(%p)->(%d, %p)\n", This, dwWhichMoniker, pmk);
620 return E_NOTIMPL;
621}

◆ OleObject_Unadvise()

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

Definition at line 767 of file oleobject.c.

768{
770 FIXME("(%p)->(%d)\n", This, dwConnection);
771 return E_NOTIMPL;
772}

◆ OleObject_Update()

static HRESULT WINAPI OleObject_Update ( IOleObject iface)
static

Definition at line 708 of file oleobject.c.

709{
711 FIXME("(%p)\n", This);
712 return E_NOTIMPL;
713}

◆ on_offlineconnected_change()

static HRESULT on_offlineconnected_change ( WebBrowser This)
static

Definition at line 258 of file oleobject.c.

259{
260 VARIANT offline;
261
263
264 if(V_VT(&offline) == VT_BOOL)
265 IWebBrowser2_put_Offline(&This->IWebBrowser2_iface, V_BOOL(&offline));
266 else if(V_VT(&offline) != VT_EMPTY)
267 WARN("wrong V_VT(silent) %d\n", V_VT(&offline));
268
269 return S_OK;
270}
@ 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:233

Referenced by OleControl_OnAmbientPropertyChange(), and OleObject_SetClientSite().

◆ on_silent_change()

static HRESULT on_silent_change ( WebBrowser This)
static

Definition at line 272 of file oleobject.c.

273{
274 VARIANT silent;
275
277
278 if(V_VT(&silent) == VT_BOOL)
279 IWebBrowser2_put_Silent(&This->IWebBrowser2_iface, V_BOOL(&silent));
280 else if(V_VT(&silent) != VT_EMPTY)
281 WARN("wrong V_VT(silent) %d\n", V_VT(&silent));
282
283 return S_OK;
284}

Referenced by OleControl_OnAmbientPropertyChange(), and OleObject_SetClientSite().

◆ release_client_site()

static void release_client_site ( WebBrowser This,
BOOL  destroy_win 
)
static

Definition at line 286 of file oleobject.c.

287{
288 release_dochost_client(&This->doc_host);
289
290 if(This->client) {
291 IOleClientSite_Release(This->client);
292 This->client = NULL;
293 }
294
295 if(This->client_closed) {
296 IOleClientSite_Release(This->client_closed);
297 This->client_closed = NULL;
298 }
299
300 if(destroy_win && This->shell_embedding_hwnd) {
301 DestroyWindow(This->shell_embedding_hwnd);
302 This->shell_embedding_hwnd = NULL;
303 }
304
305 if(This->inplace) {
306 IOleInPlaceSiteEx_Release(This->inplace);
307 This->inplace = NULL;
308 }
309
310 if(This->container) {
311 IOleContainer_Release(This->container);
312 This->container = NULL;
313 }
314
315 if(This->uiwindow) {
316 IOleInPlaceUIWindow_Release(This->uiwindow);
317 This->uiwindow = NULL;
318 }
319}
void release_dochost_client(DocHost *This)
Definition: dochost.c:601
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:293
static LRESULT resize_window(WebBrowser *This, LONG width, LONG height)
Definition: oleobject.c:43
#define LOWORD(l)
Definition: pedump.c:82
#define HIWORD(l)
Definition: typedefs.h:247
_In_ LONG _In_ HWND hwnd
Definition: winddi.h:4023
LRESULT WINAPI DefWindowProcW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
#define WM_CREATE
Definition: winuser.h:1608
#define WM_SIZE
Definition: winuser.h:1611
#define WM_SETFOCUS
Definition: winuser.h:1613
BOOL WINAPI SetPropW(_In_ HWND, _In_ LPCWSTR, _In_opt_ HANDLE)
HANDLE WINAPI GetPropW(_In_ HWND, _In_ LPCWSTR)
#define WM_KILLFOCUS
Definition: winuser.h:1614

Referenced by create_shell_embedding_hwnd().

◆ SHSetParentHwnd()

HWND WINAPI SHSetParentHwnd ( HWND  hWnd,
HWND  hWndParent 
)

Definition at line 1154 of file ordinal.c.

1155{
1156 TRACE("%p, %p\n", hWnd, hWndParent);
1157
1158 if(GetParent(hWnd) == hWndParent)
1159 return NULL;
1160
1161 if(hWndParent)
1163 else
1165
1167}
HWND hWnd
Definition: settings.c:17
LONG WINAPI SHSetWindowBits(HWND hwnd, INT offset, UINT mask, UINT flags)
Definition: ordinal.c:1126
HWND WINAPI SetParent(_In_ HWND, _In_opt_ HWND)
HWND WINAPI GetParent(_In_ HWND)
#define GWL_STYLE
Definition: winuser.h:852

Referenced by activate_inplace(), and OleObject_SetClientSite().

◆ WBOleCommandTarget_AddRef()

static ULONG WINAPI WBOleCommandTarget_AddRef ( IOleCommandTarget iface)
static

Definition at line 1143 of file oleobject.c.

1144{
1146 return IWebBrowser2_AddRef(&This->IWebBrowser2_iface);
1147}
static WebBrowser * impl_from_IOleCommandTarget(IOleCommandTarget *iface)
Definition: oleobject.c:1131

◆ WBOleCommandTarget_Exec()

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

Definition at line 1181 of file oleobject.c.

1184{
1186 FIXME("(%p)->(%s %d %d %s %p)\n", This, debugstr_guid(pguidCmdGroup), nCmdID,
1187 nCmdexecopt, debugstr_variant(pvaIn), pvaOut);
1188 return E_NOTIMPL;
1189}
static const char * debugstr_variant(const VARIANT *var)
Definition: container.c:46

◆ WBOleCommandTarget_QueryInterface()

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

Definition at line 1136 of file oleobject.c.

1138{
1140 return IWebBrowser2_QueryInterface(&This->IWebBrowser2_iface, riid, ppv);
1141}

◆ WBOleCommandTarget_QueryStatus()

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

Definition at line 1155 of file oleobject.c.

1157{
1159 IOleCommandTarget *cmdtrg;
1160 HRESULT hres;
1161
1162 TRACE("(%p)->(%s %u %p %p)\n", This, debugstr_guid(pguidCmdGroup), cCmds, prgCmds,
1163 pCmdText);
1164
1165 if(!This->doc_host.document)
1166 return 0x80040104;
1167
1168 /* NOTE: There are probably some commands that we should handle here
1169 * instead of forwarding to document object. */
1170
1171 hres = IUnknown_QueryInterface(This->doc_host.document, &IID_IOleCommandTarget, (void**)&cmdtrg);
1172 if(FAILED(hres))
1173 return hres;
1174
1175 hres = IOleCommandTarget_QueryStatus(cmdtrg, pguidCmdGroup, cCmds, prgCmds, pCmdText);
1176 IOleCommandTarget_Release(cmdtrg);
1177
1178 return hres;
1179}

◆ WBOleCommandTarget_Release()

static ULONG WINAPI WBOleCommandTarget_Release ( IOleCommandTarget iface)
static

Definition at line 1149 of file oleobject.c.

1150{
1152 return IWebBrowser2_Release(&This->IWebBrowser2_iface);
1153}

◆ WebBrowser_OleObject_Destroy()

void WebBrowser_OleObject_Destroy ( WebBrowser This)

Definition at line 1222 of file oleobject.c.

1223{
1225}

Referenced by WebBrowser_Release().

◆ WebBrowser_OleObject_Init()

void WebBrowser_OleObject_Init ( WebBrowser This)

Definition at line 1199 of file oleobject.c.

1200{
1201 DWORD dpi_x;
1202 DWORD dpi_y;
1203 HDC hdc;
1204
1205 /* default aspect ratio is 96dpi / 96dpi */
1206 hdc = GetDC(0);
1207 dpi_x = GetDeviceCaps(hdc, LOGPIXELSX);
1208 dpi_y = GetDeviceCaps(hdc, LOGPIXELSY);
1209 ReleaseDC(0, hdc);
1210
1211 This->IOleObject_iface.lpVtbl = &OleObjectVtbl;
1212 This->IOleInPlaceObject_iface.lpVtbl = &OleInPlaceObjectVtbl;
1213 This->IOleControl_iface.lpVtbl = &OleControlVtbl;
1214 This->IOleInPlaceActiveObject_iface.lpVtbl = &OleInPlaceActiveObjectVtbl;
1215 This->IOleCommandTarget_iface.lpVtbl = &OleCommandTargetVtbl;
1216
1217 /* Default size is 50x20 pixels, in himetric units */
1218 This->extent.cx = MulDiv( 50, 2540, dpi_x );
1219 This->extent.cy = MulDiv( 20, 2540, dpi_y );
1220}
unsigned long DWORD
Definition: ntddk_ex.h:95
HDC hdc
Definition: main.c:9
static HDC
Definition: imagelist.c:92
INT WINAPI MulDiv(INT nNumber, INT nNumerator, INT nDenominator)
Definition: muldiv.c:25
static const IOleInPlaceObjectVtbl OleInPlaceObjectVtbl
Definition: oleobject.c:924
static const IOleInPlaceActiveObjectVtbl OleInPlaceActiveObjectVtbl
Definition: oleobject.c:1118
static const IOleObjectVtbl OleObjectVtbl
Definition: oleobject.c:800
static const IOleCommandTargetVtbl OleCommandTargetVtbl
Definition: oleobject.c:1191
static const IOleControlVtbl OleControlVtbl
Definition: oleobject.c:1013
int WINAPI GetDeviceCaps(_In_opt_ HDC, _In_ int)
#define LOGPIXELSY
Definition: wingdi.h:719
#define LOGPIXELSX
Definition: wingdi.h:718
int WINAPI ReleaseDC(_In_opt_ HWND, _In_ HDC)
HDC WINAPI GetDC(_In_opt_ HWND)

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:332
static ULONG WINAPI EnumOLEVERB_AddRef(IEnumOLEVERB *iface)
Definition: oleobject.c:352
static ULONG WINAPI EnumOLEVERB_Release(IEnumOLEVERB *iface)
Definition: oleobject.c:362
static HRESULT WINAPI EnumOLEVERB_Reset(IEnumOLEVERB *iface)
Definition: oleobject.c:403
static HRESULT WINAPI EnumOLEVERB_Next(IEnumOLEVERB *iface, ULONG celt, OLEVERB *rgelt, ULONG *pceltFetched)
Definition: oleobject.c:375
static HRESULT WINAPI EnumOLEVERB_Clone(IEnumOLEVERB *iface, IEnumOLEVERB **ppenum)
Definition: oleobject.c:413
static HRESULT WINAPI EnumOLEVERB_Skip(IEnumOLEVERB *iface, ULONG celt)
Definition: oleobject.c:396

Definition at line 420 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:1155
static HRESULT WINAPI WBOleCommandTarget_QueryInterface(IOleCommandTarget *iface, REFIID riid, void **ppv)
Definition: oleobject.c:1136
static ULONG WINAPI WBOleCommandTarget_AddRef(IOleCommandTarget *iface)
Definition: oleobject.c:1143
static ULONG WINAPI WBOleCommandTarget_Release(IOleCommandTarget *iface)
Definition: oleobject.c:1149
static HRESULT WINAPI WBOleCommandTarget_Exec(IOleCommandTarget *iface, const GUID *pguidCmdGroup, DWORD nCmdID, DWORD nCmdexecopt, VARIANT *pvaIn, VARIANT *pvaOut)
Definition: oleobject.c:1181

Definition at line 1191 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:1006
static HRESULT WINAPI OleControl_GetControlInfo(IOleControl *iface, LPCONTROLINFO pCI)
Definition: oleobject.c:965
static HRESULT WINAPI OleControl_OnAmbientPropertyChange(IOleControl *iface, DISPID dispID)
Definition: oleobject.c:982
static ULONG WINAPI OleControl_Release(IOleControl *iface)
Definition: oleobject.c:959
static ULONG WINAPI OleControl_AddRef(IOleControl *iface)
Definition: oleobject.c:953
static HRESULT WINAPI OleControl_QueryInterface(IOleControl *iface, REFIID riid, LPVOID *ppobj)
Definition: oleobject.c:946
static HRESULT WINAPI OleControl_OnMnemonic(IOleControl *iface, struct tagMSG *pMsg)
Definition: oleobject.c:975

Definition at line 1013 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:1048
static HRESULT WINAPI InPlaceActiveObject_OnDocWindowActivate(IOleInPlaceActiveObject *iface, BOOL fActivate)
Definition: oleobject.c:1094
static HRESULT WINAPI InPlaceActiveObject_ContextSensitiveHelp(IOleInPlaceActiveObject *iface, BOOL fEnterMode)
Definition: oleobject.c:1055
static HRESULT WINAPI InPlaceActiveObject_OnFrameWindowActivate(IOleInPlaceActiveObject *iface, BOOL fActivate)
Definition: oleobject.c:1086
static ULONG WINAPI InPlaceActiveObject_AddRef(IOleInPlaceActiveObject *iface)
Definition: oleobject.c:1036
static ULONG WINAPI InPlaceActiveObject_Release(IOleInPlaceActiveObject *iface)
Definition: oleobject.c:1042
static HRESULT WINAPI InPlaceActiveObject_ResizeBorder(IOleInPlaceActiveObject *iface, LPCRECT lprcBorder, IOleInPlaceUIWindow *pUIWindow, BOOL fFrameWindow)
Definition: oleobject.c:1102
static HRESULT WINAPI InPlaceActiveObject_QueryInterface(IOleInPlaceActiveObject *iface, REFIID riid, void **ppv)
Definition: oleobject.c:1029
static HRESULT WINAPI InPlaceActiveObject_EnableModeless(IOleInPlaceActiveObject *iface, BOOL fEnable)
Definition: oleobject.c:1110
static HRESULT WINAPI InPlaceActiveObject_TranslateAccelerator(IOleInPlaceActiveObject *iface, LPMSG lpmsg)
Definition: oleobject.c:1062

Definition at line 1118 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:856
static ULONG WINAPI OleInPlaceObject_Release(IOleInPlaceObject *iface)
Definition: oleobject.c:850
static HRESULT WINAPI OleInPlaceObject_QueryInterface(IOleInPlaceObject *iface, REFIID riid, LPVOID *ppobj)
Definition: oleobject.c:837
static HRESULT WINAPI OleInPlaceObject_ContextSensitiveHelp(IOleInPlaceObject *iface, BOOL fEnterMode)
Definition: oleobject.c:866
static HRESULT WINAPI OleInPlaceObject_ReactivateAndUndo(IOleInPlaceObject *iface)
Definition: oleobject.c:917
static HRESULT WINAPI OleInPlaceObject_InPlaceDeactivate(IOleInPlaceObject *iface)
Definition: oleobject.c:874
static ULONG WINAPI OleInPlaceObject_AddRef(IOleInPlaceObject *iface)
Definition: oleobject.c:844
static HRESULT WINAPI OleInPlaceObject_SetObjectRects(IOleInPlaceObject *iface, LPCRECT lprcPosRect, LPCRECT lprcClipRect)
Definition: oleobject.c:894
static HRESULT WINAPI OleInPlaceObject_UIDeactivate(IOleInPlaceObject *iface)
Definition: oleobject.c:887

Definition at line 924 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:781
static HRESULT WINAPI OleObject_IsUpToDate(IOleObject *iface)
Definition: oleobject.c:715
static HRESULT WINAPI OleObject_Advise(IOleObject *iface, IAdviseSink *pAdvSink, DWORD *pdwConnection)
Definition: oleobject.c:759
static HRESULT WINAPI OleObject_GetMoniker(IOleObject *iface, DWORD dwAssign, DWORD dwWhichMoniker, LPMONIKER *ppmk)
Definition: oleobject.c:623
static HRESULT WINAPI OleObject_QueryInterface(IOleObject *iface, REFIID riid, void **ppv)
Definition: oleobject.c:439
static HRESULT WINAPI OleObject_DoVerb(IOleObject *iface, LONG iVerb, struct tagMSG *lpmsg, LPOLECLIENTSITE pActiveSite, LONG lindex, HWND hwndParent, LPCRECT lprcPosRect)
Definition: oleobject.c:647
static HRESULT WINAPI OleObject_EnumAdvise(IOleObject *iface, IEnumSTATDATA **ppenumAdvise)
Definition: oleobject.c:774
static ULONG WINAPI OleObject_AddRef(IOleObject *iface)
Definition: oleobject.c:445
static HRESULT WINAPI OleObject_GetClipboardData(IOleObject *iface, DWORD dwReserved, LPDATAOBJECT *ppDataObject)
Definition: oleobject.c:639
static HRESULT WINAPI OleObject_GetExtent(IOleObject *iface, DWORD dwDrawAspect, SIZEL *psizel)
Definition: oleobject.c:748
static HRESULT WINAPI OleObject_GetUserType(IOleObject *iface, DWORD dwFormOfType, LPOLESTR *pszUserType)
Definition: oleobject.c:729
static ULONG WINAPI OleObject_Release(IOleObject *iface)
Definition: oleobject.c:451
static HRESULT WINAPI OleObject_SetHostNames(IOleObject *iface, LPCOLESTR szContainerApp, LPCOLESTR szContainerObj)
Definition: oleobject.c:571
static HRESULT WINAPI OleObject_GetUserClassID(IOleObject *iface, CLSID *pClsid)
Definition: oleobject.c:722
static HRESULT WINAPI OleObject_GetClientSite(IOleObject *iface, LPOLECLIENTSITE *ppClientSite)
Definition: oleobject.c:555
static HRESULT WINAPI OleObject_SetMoniker(IOleObject *iface, DWORD dwWhichMoniker, IMoniker *pmk)
Definition: oleobject.c:616
static HRESULT WINAPI OleObject_EnumVerbs(IOleObject *iface, IEnumOLEVERB **ppEnumOleVerb)
Definition: oleobject.c:689
static HRESULT WINAPI OleObject_Update(IOleObject *iface)
Definition: oleobject.c:708
static HRESULT WINAPI OleObject_SetExtent(IOleObject *iface, DWORD dwDrawAspect, SIZEL *psizel)
Definition: oleobject.c:737
static HRESULT WINAPI OleObject_SetClientSite(IOleObject *iface, LPOLECLIENTSITE pClientSite)
Definition: oleobject.c:457
static HRESULT WINAPI OleObject_InitFromData(IOleObject *iface, LPDATAOBJECT pDataObject, BOOL fCreation, DWORD dwReserved)
Definition: oleobject.c:631
static HRESULT WINAPI OleObject_SetColorScheme(IOleObject *iface, LOGPALETTE *pLogpal)
Definition: oleobject.c:793
static HRESULT WINAPI OleObject_Unadvise(IOleObject *iface, DWORD dwConnection)
Definition: oleobject.c:767
static HRESULT WINAPI OleObject_Close(IOleObject *iface, DWORD dwSaveOption)
Definition: oleobject.c:582

Definition at line 800 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().