comctl32: Fix disabled thumb painting, for TBS_BOTH use edged rectangle.
[wine/multimedia.git] / dlls / ieframe / ie.c
blobafbd2e9a32a1378e6e2d2d54160767dfb6c806bb
1 /*
2 * Copyright 2006 Jacek Caban for CodeWeavers
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 #include "ieframe.h"
21 #include "wine/debug.h"
23 WINE_DEFAULT_DEBUG_CHANNEL(ieframe);
25 static inline InternetExplorer *impl_from_IWebBrowser2(IWebBrowser2 *iface)
27 return CONTAINING_RECORD(iface, InternetExplorer, IWebBrowser2_iface);
30 static HRESULT WINAPI InternetExplorer_QueryInterface(IWebBrowser2 *iface, REFIID riid, LPVOID *ppv)
32 InternetExplorer *This = impl_from_IWebBrowser2(iface);
34 *ppv = NULL;
36 if(IsEqualGUID(&IID_IUnknown, riid)) {
37 TRACE("(%p)->(IID_IUnknown %p)\n", This, ppv);
38 *ppv = &This->IWebBrowser2_iface;
39 }else if(IsEqualGUID(&IID_IDispatch, riid)) {
40 TRACE("(%p)->(IID_IDispatch %p)\n", This, ppv);
41 *ppv = &This->IWebBrowser2_iface;
42 }else if(IsEqualGUID(&IID_IWebBrowser, riid)) {
43 TRACE("(%p)->(IID_IWebBrowser %p)\n", This, ppv);
44 *ppv = &This->IWebBrowser2_iface;
45 }else if(IsEqualGUID(&IID_IWebBrowserApp, riid)) {
46 TRACE("(%p)->(IID_IWebBrowserApp %p)\n", This, ppv);
47 *ppv = &This->IWebBrowser2_iface;
48 }else if(IsEqualGUID(&IID_IWebBrowser2, riid)) {
49 TRACE("(%p)->(IID_IWebBrowser2 %p)\n", This, ppv);
50 *ppv = &This->IWebBrowser2_iface;
51 }else if(IsEqualGUID(&IID_IConnectionPointContainer, riid)) {
52 TRACE("(%p)->(IID_IConnectionPointContainer %p)\n", This, ppv);
53 *ppv = &This->doc_host->doc_host.cps.IConnectionPointContainer_iface;
54 }else if(IsEqualGUID(&IID_IServiceProvider, riid)) {
55 TRACE("(%p)->(IID_IServiceProvider %p)\n", This, ppv);
56 *ppv = &This->IServiceProvider_iface;
57 }else if(HlinkFrame_QI(&This->hlink_frame, riid, ppv)) {
58 return S_OK;
61 if(*ppv) {
62 IUnknown_AddRef((IUnknown*)*ppv);
63 return S_OK;
66 WARN("(%p)->(%s %p) interface not supported\n", This, debugstr_guid(riid), ppv);
67 return E_NOINTERFACE;
70 static ULONG WINAPI InternetExplorer_AddRef(IWebBrowser2 *iface)
72 InternetExplorer *This = impl_from_IWebBrowser2(iface);
73 LONG ref = InterlockedIncrement(&This->ref);
74 TRACE("(%p) ref=%d\n", This, ref);
75 return ref;
78 static ULONG WINAPI InternetExplorer_Release(IWebBrowser2 *iface)
80 InternetExplorer *This = impl_from_IWebBrowser2(iface);
81 LONG ref = InterlockedDecrement(&This->ref);
83 TRACE("(%p) ref=%d\n", This, ref);
85 if(!ref) {
86 if(This->doc_host) {
87 deactivate_document(&This->doc_host->doc_host);
88 DocHost_Release(&This->doc_host->doc_host);
89 if(This->doc_host) {
90 This->doc_host->ie = NULL;
91 This->doc_host->doc_host.container_vtbl->release(&This->doc_host->doc_host);
95 if(This->frame_hwnd)
96 DestroyWindow(This->frame_hwnd);
97 list_remove(&This->entry);
98 heap_free(This);
100 released_obj();
103 return ref;
106 static HRESULT WINAPI InternetExplorer_GetTypeInfoCount(IWebBrowser2 *iface, UINT *pctinfo)
108 InternetExplorer *This = impl_from_IWebBrowser2(iface);
109 FIXME("(%p)->(%p)\n", This, pctinfo);
110 return E_NOTIMPL;
113 static HRESULT WINAPI InternetExplorer_GetTypeInfo(IWebBrowser2 *iface, UINT iTInfo, LCID lcid,
114 LPTYPEINFO *ppTInfo)
116 InternetExplorer *This = impl_from_IWebBrowser2(iface);
117 FIXME("(%p)->(%d %d %p)\n", This, iTInfo, lcid, ppTInfo);
118 return E_NOTIMPL;
121 static HRESULT WINAPI InternetExplorer_GetIDsOfNames(IWebBrowser2 *iface, REFIID riid,
122 LPOLESTR *rgszNames, UINT cNames,
123 LCID lcid, DISPID *rgDispId)
125 InternetExplorer *This = impl_from_IWebBrowser2(iface);
126 FIXME("(%p)->(%s %p %d %d %p)\n", This, debugstr_guid(riid), rgszNames, cNames,
127 lcid, rgDispId);
128 return E_NOTIMPL;
131 static HRESULT WINAPI InternetExplorer_Invoke(IWebBrowser2 *iface, DISPID dispIdMember,
132 REFIID riid, LCID lcid, WORD wFlags,
133 DISPPARAMS *pDispParams, VARIANT *pVarResult,
134 EXCEPINFO *pExepInfo, UINT *puArgErr)
136 InternetExplorer *This = impl_from_IWebBrowser2(iface);
137 FIXME("(%p)->(%d %s %d %08x %p %p %p %p)\n", This, dispIdMember, debugstr_guid(riid),
138 lcid, wFlags, pDispParams, pVarResult, pExepInfo, puArgErr);
139 return E_NOTIMPL;
142 static HRESULT WINAPI InternetExplorer_GoBack(IWebBrowser2 *iface)
144 InternetExplorer *This = impl_from_IWebBrowser2(iface);
145 TRACE("(%p)\n", This);
146 return go_back(&This->doc_host->doc_host);
149 static HRESULT WINAPI InternetExplorer_GoForward(IWebBrowser2 *iface)
151 InternetExplorer *This = impl_from_IWebBrowser2(iface);
152 TRACE("(%p)\n", This);
153 return go_forward(&This->doc_host->doc_host);
156 static HRESULT WINAPI InternetExplorer_GoHome(IWebBrowser2 *iface)
158 InternetExplorer *This = impl_from_IWebBrowser2(iface);
159 TRACE("(%p)\n", This);
160 return go_home(&This->doc_host->doc_host);
163 static HRESULT WINAPI InternetExplorer_GoSearch(IWebBrowser2 *iface)
165 InternetExplorer *This = impl_from_IWebBrowser2(iface);
166 FIXME("(%p)\n", This);
167 return E_NOTIMPL;
170 static HRESULT WINAPI InternetExplorer_Navigate(IWebBrowser2 *iface, BSTR szUrl,
171 VARIANT *Flags, VARIANT *TargetFrameName,
172 VARIANT *PostData, VARIANT *Headers)
174 InternetExplorer *This = impl_from_IWebBrowser2(iface);
176 TRACE("(%p)->(%s %p %p %p %p)\n", This, debugstr_w(szUrl), Flags, TargetFrameName,
177 PostData, Headers);
179 return navigate_url(&This->doc_host->doc_host, szUrl, Flags, TargetFrameName, PostData, Headers);
182 static HRESULT WINAPI InternetExplorer_Refresh(IWebBrowser2 *iface)
184 InternetExplorer *This = impl_from_IWebBrowser2(iface);
186 TRACE("(%p)\n", This);
188 return refresh_document(&This->doc_host->doc_host);
191 static HRESULT WINAPI InternetExplorer_Refresh2(IWebBrowser2 *iface, VARIANT *Level)
193 InternetExplorer *This = impl_from_IWebBrowser2(iface);
194 FIXME("(%p)->(%p)\n", This, Level);
195 return E_NOTIMPL;
198 static HRESULT WINAPI InternetExplorer_Stop(IWebBrowser2 *iface)
200 InternetExplorer *This = impl_from_IWebBrowser2(iface);
201 FIXME("(%p)\n", This);
202 return E_NOTIMPL;
205 static HRESULT WINAPI InternetExplorer_get_Application(IWebBrowser2 *iface, IDispatch **ppDisp)
207 InternetExplorer *This = impl_from_IWebBrowser2(iface);
208 FIXME("(%p)->(%p)\n", This, ppDisp);
209 return E_NOTIMPL;
212 static HRESULT WINAPI InternetExplorer_get_Parent(IWebBrowser2 *iface, IDispatch **ppDisp)
214 InternetExplorer *This = impl_from_IWebBrowser2(iface);
215 FIXME("(%p)->(%p)\n", This, ppDisp);
216 return E_NOTIMPL;
219 static HRESULT WINAPI InternetExplorer_get_Container(IWebBrowser2 *iface, IDispatch **ppDisp)
221 InternetExplorer *This = impl_from_IWebBrowser2(iface);
222 FIXME("(%p)->(%p)\n", This, ppDisp);
223 return E_NOTIMPL;
226 static HRESULT WINAPI InternetExplorer_get_Document(IWebBrowser2 *iface, IDispatch **ppDisp)
228 InternetExplorer *This = impl_from_IWebBrowser2(iface);
229 FIXME("(%p)->(%p)\n", This, ppDisp);
230 return E_NOTIMPL;
233 static HRESULT WINAPI InternetExplorer_get_TopLevelContainer(IWebBrowser2 *iface, VARIANT_BOOL *pBool)
235 InternetExplorer *This = impl_from_IWebBrowser2(iface);
236 FIXME("(%p)->(%p)\n", This, pBool);
237 return E_NOTIMPL;
240 static HRESULT WINAPI InternetExplorer_get_Type(IWebBrowser2 *iface, BSTR *Type)
242 InternetExplorer *This = impl_from_IWebBrowser2(iface);
243 FIXME("(%p)->(%p)\n", This, Type);
244 return E_NOTIMPL;
247 static HRESULT WINAPI InternetExplorer_get_Left(IWebBrowser2 *iface, LONG *pl)
249 InternetExplorer *This = impl_from_IWebBrowser2(iface);
250 FIXME("(%p)->(%p)\n", This, pl);
251 return E_NOTIMPL;
254 static HRESULT WINAPI InternetExplorer_put_Left(IWebBrowser2 *iface, LONG Left)
256 InternetExplorer *This = impl_from_IWebBrowser2(iface);
257 FIXME("(%p)->(%d)\n", This, Left);
258 return E_NOTIMPL;
261 static HRESULT WINAPI InternetExplorer_get_Top(IWebBrowser2 *iface, LONG *pl)
263 InternetExplorer *This = impl_from_IWebBrowser2(iface);
264 FIXME("(%p)->(%p)\n", This, pl);
265 return E_NOTIMPL;
268 static HRESULT WINAPI InternetExplorer_put_Top(IWebBrowser2 *iface, LONG Top)
270 InternetExplorer *This = impl_from_IWebBrowser2(iface);
271 FIXME("(%p)->(%d)\n", This, Top);
272 return E_NOTIMPL;
275 static HRESULT WINAPI InternetExplorer_get_Width(IWebBrowser2 *iface, LONG *pl)
277 InternetExplorer *This = impl_from_IWebBrowser2(iface);
278 FIXME("(%p)->(%p)\n", This, pl);
279 return E_NOTIMPL;
282 static HRESULT WINAPI InternetExplorer_put_Width(IWebBrowser2 *iface, LONG Width)
284 InternetExplorer *This = impl_from_IWebBrowser2(iface);
285 FIXME("(%p)->(%d)\n", This, Width);
286 return E_NOTIMPL;
289 static HRESULT WINAPI InternetExplorer_get_Height(IWebBrowser2 *iface, LONG *pl)
291 InternetExplorer *This = impl_from_IWebBrowser2(iface);
292 FIXME("(%p)->(%p)\n", This, pl);
293 return E_NOTIMPL;
296 static HRESULT WINAPI InternetExplorer_put_Height(IWebBrowser2 *iface, LONG Height)
298 InternetExplorer *This = impl_from_IWebBrowser2(iface);
299 FIXME("(%p)->(%d)\n", This, Height);
300 return E_NOTIMPL;
303 static HRESULT WINAPI InternetExplorer_get_LocationName(IWebBrowser2 *iface, BSTR *LocationName)
305 InternetExplorer *This = impl_from_IWebBrowser2(iface);
306 FIXME("(%p)->(%p)\n", This, LocationName);
307 return E_NOTIMPL;
310 static HRESULT WINAPI InternetExplorer_get_LocationURL(IWebBrowser2 *iface, BSTR *LocationURL)
312 InternetExplorer *This = impl_from_IWebBrowser2(iface);
314 TRACE("(%p)->(%p)\n", This, LocationURL);
316 return get_location_url(&This->doc_host->doc_host, LocationURL);
319 static HRESULT WINAPI InternetExplorer_get_Busy(IWebBrowser2 *iface, VARIANT_BOOL *pBool)
321 InternetExplorer *This = impl_from_IWebBrowser2(iface);
322 FIXME("(%p)->(%p)\n", This, pBool);
323 return E_NOTIMPL;
326 static HRESULT WINAPI InternetExplorer_Quit(IWebBrowser2 *iface)
328 InternetExplorer *This = impl_from_IWebBrowser2(iface);
329 FIXME("(%p)\n", This);
330 return E_NOTIMPL;
333 static HRESULT WINAPI InternetExplorer_ClientToWindow(IWebBrowser2 *iface, int *pcx, int *pcy)
335 InternetExplorer *This = impl_from_IWebBrowser2(iface);
336 FIXME("(%p)->(%p %p)\n", This, pcx, pcy);
337 return E_NOTIMPL;
340 static HRESULT WINAPI InternetExplorer_PutProperty(IWebBrowser2 *iface, BSTR szProperty, VARIANT vtValue)
342 InternetExplorer *This = impl_from_IWebBrowser2(iface);
343 FIXME("(%p)->(%s)\n", This, debugstr_w(szProperty));
344 return E_NOTIMPL;
347 static HRESULT WINAPI InternetExplorer_GetProperty(IWebBrowser2 *iface, BSTR szProperty, VARIANT *pvtValue)
349 InternetExplorer *This = impl_from_IWebBrowser2(iface);
350 FIXME("(%p)->(%s %p)\n", This, debugstr_w(szProperty), pvtValue);
351 return E_NOTIMPL;
354 static HRESULT WINAPI InternetExplorer_get_Name(IWebBrowser2 *iface, BSTR *Name)
356 InternetExplorer *This = impl_from_IWebBrowser2(iface);
357 FIXME("(%p)->(%p)\n", This, Name);
358 return E_NOTIMPL;
361 static HRESULT WINAPI InternetExplorer_get_HWND(IWebBrowser2 *iface, LONG *pHWND)
363 InternetExplorer *This = impl_from_IWebBrowser2(iface);
364 FIXME("(%p)->(%p)\n", This, pHWND);
365 return E_NOTIMPL;
368 static HRESULT WINAPI InternetExplorer_get_FullName(IWebBrowser2 *iface, BSTR *FullName)
370 InternetExplorer *This = impl_from_IWebBrowser2(iface);
371 FIXME("(%p)->(%p)\n", This, FullName);
372 return E_NOTIMPL;
375 static HRESULT WINAPI InternetExplorer_get_Path(IWebBrowser2 *iface, BSTR *Path)
377 InternetExplorer *This = impl_from_IWebBrowser2(iface);
378 FIXME("(%p)->(%p)\n", This, Path);
379 return E_NOTIMPL;
382 static HRESULT WINAPI InternetExplorer_get_Visible(IWebBrowser2 *iface, VARIANT_BOOL *pBool)
384 InternetExplorer *This = impl_from_IWebBrowser2(iface);
386 TRACE("(%p)->(%p)\n", This, pBool);
388 *pBool = IsWindowVisible(This->frame_hwnd) ? VARIANT_TRUE : VARIANT_FALSE;
389 return S_OK;
392 static HRESULT WINAPI InternetExplorer_put_Visible(IWebBrowser2 *iface, VARIANT_BOOL Value)
394 InternetExplorer *This = impl_from_IWebBrowser2(iface);
395 TRACE("(%p)->(%x)\n", This, Value);
397 ShowWindow(This->frame_hwnd, Value ? SW_SHOW : SW_HIDE);
399 return S_OK;
402 static HRESULT WINAPI InternetExplorer_get_StatusBar(IWebBrowser2 *iface, VARIANT_BOOL *pBool)
404 InternetExplorer *This = impl_from_IWebBrowser2(iface);
405 FIXME("(%p)->(%p)\n", This, pBool);
406 return E_NOTIMPL;
409 static HRESULT WINAPI InternetExplorer_put_StatusBar(IWebBrowser2 *iface, VARIANT_BOOL Value)
411 InternetExplorer *This = impl_from_IWebBrowser2(iface);
412 FIXME("(%p)->(%x)\n", This, Value);
413 return E_NOTIMPL;
416 static HRESULT WINAPI InternetExplorer_get_StatusText(IWebBrowser2 *iface, BSTR *StatusText)
418 InternetExplorer *This = impl_from_IWebBrowser2(iface);
419 FIXME("(%p)->(%p)\n", This, StatusText);
420 return E_NOTIMPL;
423 static HRESULT WINAPI InternetExplorer_put_StatusText(IWebBrowser2 *iface, BSTR StatusText)
425 InternetExplorer *This = impl_from_IWebBrowser2(iface);
427 TRACE("(%p)->(%s)\n", This, debugstr_w(StatusText));
429 return update_ie_statustext(This, StatusText);
432 static HRESULT WINAPI InternetExplorer_get_ToolBar(IWebBrowser2 *iface, int *Value)
434 InternetExplorer *This = impl_from_IWebBrowser2(iface);
435 FIXME("(%p)->(%p)\n", This, Value);
436 return E_NOTIMPL;
439 static HRESULT WINAPI InternetExplorer_put_ToolBar(IWebBrowser2 *iface, int Value)
441 InternetExplorer *This = impl_from_IWebBrowser2(iface);
442 FIXME("(%p)->(%d)\n", This, Value);
443 return E_NOTIMPL;
446 static HRESULT WINAPI InternetExplorer_get_MenuBar(IWebBrowser2 *iface, VARIANT_BOOL *Value)
448 InternetExplorer *This = impl_from_IWebBrowser2(iface);
449 FIXME("(%p)->(%p)\n", This, Value);
450 return E_NOTIMPL;
453 static HRESULT WINAPI InternetExplorer_put_MenuBar(IWebBrowser2 *iface, VARIANT_BOOL Value)
455 InternetExplorer *This = impl_from_IWebBrowser2(iface);
456 HMENU menu = NULL;
458 TRACE("(%p)->(%x)\n", This, Value);
460 if(Value)
461 menu = This->menu;
463 if(!SetMenu(This->frame_hwnd, menu))
464 return HRESULT_FROM_WIN32(GetLastError());
466 return S_OK;
469 static HRESULT WINAPI InternetExplorer_get_FullScreen(IWebBrowser2 *iface, VARIANT_BOOL *pbFullScreen)
471 InternetExplorer *This = impl_from_IWebBrowser2(iface);
472 FIXME("(%p)->(%p)\n", This, pbFullScreen);
473 return E_NOTIMPL;
476 static HRESULT WINAPI InternetExplorer_put_FullScreen(IWebBrowser2 *iface, VARIANT_BOOL bFullScreen)
478 InternetExplorer *This = impl_from_IWebBrowser2(iface);
479 FIXME("(%p)->(%x)\n", This, bFullScreen);
480 return E_NOTIMPL;
483 static HRESULT WINAPI InternetExplorer_Navigate2(IWebBrowser2 *iface, VARIANT *URL, VARIANT *Flags,
484 VARIANT *TargetFrameName, VARIANT *PostData, VARIANT *Headers)
486 InternetExplorer *This = impl_from_IWebBrowser2(iface);
488 TRACE("(%p)->(%p %p %p %p %p)\n", This, URL, Flags, TargetFrameName, PostData, Headers);
490 if(!URL)
491 return S_OK;
493 if(V_VT(URL) != VT_BSTR) {
494 FIXME("Unsupported V_VT(URL) %d\n", V_VT(URL));
495 return E_INVALIDARG;
498 return navigate_url(&This->doc_host->doc_host, V_BSTR(URL), Flags, TargetFrameName, PostData, Headers);
501 static HRESULT WINAPI InternetExplorer_QueryStatusWB(IWebBrowser2 *iface, OLECMDID cmdID, OLECMDF *pcmdf)
503 InternetExplorer *This = impl_from_IWebBrowser2(iface);
504 FIXME("(%p)->(%d %p)\n", This, cmdID, pcmdf);
505 return E_NOTIMPL;
508 static HRESULT WINAPI InternetExplorer_ExecWB(IWebBrowser2 *iface, OLECMDID cmdID,
509 OLECMDEXECOPT cmdexecopt, VARIANT *pvaIn, VARIANT *pvaOut)
511 InternetExplorer *This = impl_from_IWebBrowser2(iface);
512 FIXME("(%p)->(%d %d %p %p)\n", This, cmdID, cmdexecopt, pvaIn, pvaOut);
513 return E_NOTIMPL;
516 static HRESULT WINAPI InternetExplorer_ShowBrowserBar(IWebBrowser2 *iface, VARIANT *pvaClsid,
517 VARIANT *pvarShow, VARIANT *pvarSize)
519 InternetExplorer *This = impl_from_IWebBrowser2(iface);
520 FIXME("(%p)->(%p %p %p)\n", This, pvaClsid, pvarShow, pvarSize);
521 return E_NOTIMPL;
524 static HRESULT WINAPI InternetExplorer_get_ReadyState(IWebBrowser2 *iface, READYSTATE *lpReadyState)
526 InternetExplorer *This = impl_from_IWebBrowser2(iface);
527 FIXME("(%p)->(%p)\n", This, lpReadyState);
528 return E_NOTIMPL;
531 static HRESULT WINAPI InternetExplorer_get_Offline(IWebBrowser2 *iface, VARIANT_BOOL *pbOffline)
533 InternetExplorer *This = impl_from_IWebBrowser2(iface);
534 FIXME("(%p)->(%p)\n", This, pbOffline);
535 return E_NOTIMPL;
538 static HRESULT WINAPI InternetExplorer_put_Offline(IWebBrowser2 *iface, VARIANT_BOOL bOffline)
540 InternetExplorer *This = impl_from_IWebBrowser2(iface);
541 FIXME("(%p)->(%x)\n", This, bOffline);
542 return E_NOTIMPL;
545 static HRESULT WINAPI InternetExplorer_get_Silent(IWebBrowser2 *iface, VARIANT_BOOL *pbSilent)
547 InternetExplorer *This = impl_from_IWebBrowser2(iface);
548 FIXME("(%p)->(%p)\n", This, pbSilent);
549 return E_NOTIMPL;
552 static HRESULT WINAPI InternetExplorer_put_Silent(IWebBrowser2 *iface, VARIANT_BOOL bSilent)
554 InternetExplorer *This = impl_from_IWebBrowser2(iface);
555 FIXME("(%p)->(%x)\n", This, bSilent);
556 return E_NOTIMPL;
559 static HRESULT WINAPI InternetExplorer_get_RegisterAsBrowser(IWebBrowser2 *iface,
560 VARIANT_BOOL *pbRegister)
562 InternetExplorer *This = impl_from_IWebBrowser2(iface);
563 FIXME("(%p)->(%p)\n", This, pbRegister);
564 return E_NOTIMPL;
567 static HRESULT WINAPI InternetExplorer_put_RegisterAsBrowser(IWebBrowser2 *iface,
568 VARIANT_BOOL bRegister)
570 InternetExplorer *This = impl_from_IWebBrowser2(iface);
571 FIXME("(%p)->(%x)\n", This, bRegister);
572 return E_NOTIMPL;
575 static HRESULT WINAPI InternetExplorer_get_RegisterAsDropTarget(IWebBrowser2 *iface,
576 VARIANT_BOOL *pbRegister)
578 InternetExplorer *This = impl_from_IWebBrowser2(iface);
579 FIXME("(%p)->(%p)\n", This, pbRegister);
580 return E_NOTIMPL;
583 static HRESULT WINAPI InternetExplorer_put_RegisterAsDropTarget(IWebBrowser2 *iface,
584 VARIANT_BOOL bRegister)
586 InternetExplorer *This = impl_from_IWebBrowser2(iface);
587 FIXME("(%p)->(%x)\n", This, bRegister);
588 return E_NOTIMPL;
591 static HRESULT WINAPI InternetExplorer_get_TheaterMode(IWebBrowser2 *iface, VARIANT_BOOL *pbRegister)
593 InternetExplorer *This = impl_from_IWebBrowser2(iface);
594 FIXME("(%p)->(%p)\n", This, pbRegister);
595 return E_NOTIMPL;
598 static HRESULT WINAPI InternetExplorer_put_TheaterMode(IWebBrowser2 *iface, VARIANT_BOOL bRegister)
600 InternetExplorer *This = impl_from_IWebBrowser2(iface);
601 FIXME("(%p)->(%x)\n", This, bRegister);
602 return E_NOTIMPL;
605 static HRESULT WINAPI InternetExplorer_get_AddressBar(IWebBrowser2 *iface, VARIANT_BOOL *Value)
607 InternetExplorer *This = impl_from_IWebBrowser2(iface);
608 FIXME("(%p)->(%p)\n", This, Value);
609 return E_NOTIMPL;
612 static HRESULT WINAPI InternetExplorer_put_AddressBar(IWebBrowser2 *iface, VARIANT_BOOL Value)
614 InternetExplorer *This = impl_from_IWebBrowser2(iface);
615 FIXME("(%p)->(%x)\n", This, Value);
616 return E_NOTIMPL;
619 static HRESULT WINAPI InternetExplorer_get_Resizable(IWebBrowser2 *iface, VARIANT_BOOL *Value)
621 InternetExplorer *This = impl_from_IWebBrowser2(iface);
622 FIXME("(%p)->(%p)\n", This, Value);
623 return E_NOTIMPL;
626 static HRESULT WINAPI InternetExplorer_put_Resizable(IWebBrowser2 *iface, VARIANT_BOOL Value)
628 InternetExplorer *This = impl_from_IWebBrowser2(iface);
629 FIXME("(%p)->(%x)\n", This, Value);
630 return E_NOTIMPL;
633 static const IWebBrowser2Vtbl InternetExplorerVtbl =
635 InternetExplorer_QueryInterface,
636 InternetExplorer_AddRef,
637 InternetExplorer_Release,
638 InternetExplorer_GetTypeInfoCount,
639 InternetExplorer_GetTypeInfo,
640 InternetExplorer_GetIDsOfNames,
641 InternetExplorer_Invoke,
642 InternetExplorer_GoBack,
643 InternetExplorer_GoForward,
644 InternetExplorer_GoHome,
645 InternetExplorer_GoSearch,
646 InternetExplorer_Navigate,
647 InternetExplorer_Refresh,
648 InternetExplorer_Refresh2,
649 InternetExplorer_Stop,
650 InternetExplorer_get_Application,
651 InternetExplorer_get_Parent,
652 InternetExplorer_get_Container,
653 InternetExplorer_get_Document,
654 InternetExplorer_get_TopLevelContainer,
655 InternetExplorer_get_Type,
656 InternetExplorer_get_Left,
657 InternetExplorer_put_Left,
658 InternetExplorer_get_Top,
659 InternetExplorer_put_Top,
660 InternetExplorer_get_Width,
661 InternetExplorer_put_Width,
662 InternetExplorer_get_Height,
663 InternetExplorer_put_Height,
664 InternetExplorer_get_LocationName,
665 InternetExplorer_get_LocationURL,
666 InternetExplorer_get_Busy,
667 InternetExplorer_Quit,
668 InternetExplorer_ClientToWindow,
669 InternetExplorer_PutProperty,
670 InternetExplorer_GetProperty,
671 InternetExplorer_get_Name,
672 InternetExplorer_get_HWND,
673 InternetExplorer_get_FullName,
674 InternetExplorer_get_Path,
675 InternetExplorer_get_Visible,
676 InternetExplorer_put_Visible,
677 InternetExplorer_get_StatusBar,
678 InternetExplorer_put_StatusBar,
679 InternetExplorer_get_StatusText,
680 InternetExplorer_put_StatusText,
681 InternetExplorer_get_ToolBar,
682 InternetExplorer_put_ToolBar,
683 InternetExplorer_get_MenuBar,
684 InternetExplorer_put_MenuBar,
685 InternetExplorer_get_FullScreen,
686 InternetExplorer_put_FullScreen,
687 InternetExplorer_Navigate2,
688 InternetExplorer_QueryStatusWB,
689 InternetExplorer_ExecWB,
690 InternetExplorer_ShowBrowserBar,
691 InternetExplorer_get_ReadyState,
692 InternetExplorer_get_Offline,
693 InternetExplorer_put_Offline,
694 InternetExplorer_get_Silent,
695 InternetExplorer_put_Silent,
696 InternetExplorer_get_RegisterAsBrowser,
697 InternetExplorer_put_RegisterAsBrowser,
698 InternetExplorer_get_RegisterAsDropTarget,
699 InternetExplorer_put_RegisterAsDropTarget,
700 InternetExplorer_get_TheaterMode,
701 InternetExplorer_put_TheaterMode,
702 InternetExplorer_get_AddressBar,
703 InternetExplorer_put_AddressBar,
704 InternetExplorer_get_Resizable,
705 InternetExplorer_put_Resizable
708 static inline InternetExplorer *impl_from_IServiceProvider(IServiceProvider *iface)
710 return CONTAINING_RECORD(iface, InternetExplorer, IServiceProvider_iface);
713 static HRESULT WINAPI IEServiceProvider_QueryInterface(IServiceProvider *iface,
714 REFIID riid, LPVOID *ppv)
716 InternetExplorer *This = impl_from_IServiceProvider(iface);
717 return IWebBrowser2_QueryInterface(&This->IWebBrowser2_iface, riid, ppv);
720 static ULONG WINAPI IEServiceProvider_AddRef(IServiceProvider *iface)
722 InternetExplorer *This = impl_from_IServiceProvider(iface);
723 return IWebBrowser2_AddRef(&This->IWebBrowser2_iface);
726 static ULONG WINAPI IEServiceProvider_Release(IServiceProvider *iface)
728 InternetExplorer *This = impl_from_IServiceProvider(iface);
729 return IWebBrowser2_Release(&This->IWebBrowser2_iface);
732 static HRESULT WINAPI IEServiceProvider_QueryService(IServiceProvider *iface,
733 REFGUID guidService, REFIID riid, void **ppv)
735 InternetExplorer *This = impl_from_IServiceProvider(iface);
737 if(IsEqualGUID(&SID_SHTMLWindow, riid)) {
738 TRACE("(%p)->(SID_SHTMLWindow)\n", This);
739 return IHTMLWindow2_QueryInterface(&This->doc_host->doc_host.html_window.IHTMLWindow2_iface, riid, ppv);
742 FIXME("(%p)->(%s, %s %p)\n", This, debugstr_guid(guidService), debugstr_guid(riid), ppv);
743 *ppv = NULL;
744 return E_NOINTERFACE;
747 static const IServiceProviderVtbl ServiceProviderVtbl =
749 IEServiceProvider_QueryInterface,
750 IEServiceProvider_AddRef,
751 IEServiceProvider_Release,
752 IEServiceProvider_QueryService
755 void InternetExplorer_WebBrowser_Init(InternetExplorer *This)
757 This->IWebBrowser2_iface.lpVtbl = &InternetExplorerVtbl;
758 This->IServiceProvider_iface.lpVtbl = &ServiceProviderVtbl;