Commit d11069f8 authored by Robert Shearman's avatar Robert Shearman Committed by Alexandre Julliard

shell: Fix view window Z order.

After creating the Shell View window we should call SetWindowPos to move the window on top of other child windows in the parent window. Also delay the showing of the window so that we can do more initialisation after window creation without it causing visual artifacts.
parent 92279027
......@@ -1878,7 +1878,7 @@ static HRESULT WINAPI IShellView_fnCreateViewWindow(
*phWnd = CreateWindowExA(0,
SV_CLASS_NAME,
NULL,
WS_CHILD | WS_VISIBLE | WS_TABSTOP,
WS_CHILD | WS_TABSTOP,
prcView->left,
prcView->top,
prcView->right - prcView->left,
......@@ -1892,6 +1892,9 @@ static HRESULT WINAPI IShellView_fnCreateViewWindow(
if(!*phWnd) return E_FAIL;
SetWindowPos(*phWnd, HWND_TOP, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE | SWP_SHOWWINDOW);
UpdateWindow(*phWnd);
return S_OK;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment