ieframe: Always create doc view window when creating InternetExplore object instance.

This commit is contained in:
Jacek Caban 2012-01-06 12:59:32 +01:00 committed by Alexandre Julliard
parent a3d6450226
commit f31391c777
1 changed files with 3 additions and 1 deletions

View File

@ -698,6 +698,9 @@ static void create_frame_hwnd(InternetExplorer *This)
| WS_MINIMIZEBOX | WS_MAXIMIZEBOX,
CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT,
NULL, NULL /* FIXME */, ieframe_instance, This);
This->doc_host->doc_host.frame_hwnd = This->frame_hwnd;
create_doc_view_hwnd(&This->doc_host->doc_host);
}
static inline IEDocHost *impl_from_DocHost(DocHost *iface)
@ -793,7 +796,6 @@ static HRESULT create_ie(InternetExplorer **ret_obj)
HlinkFrame_Init(&ret->hlink_frame, (IUnknown*)&ret->IWebBrowser2_iface, &ret->doc_host->doc_host);
create_frame_hwnd(ret);
ret->doc_host->doc_host.frame_hwnd = ret->frame_hwnd;
InterlockedIncrement(&obj_cnt);
list_add_tail(&ie_list, &ret->entry);