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.
This commit is contained in:
Robert Shearman 2006-01-12 11:54:03 +01:00 committed by Alexandre Julliard
parent 9227902714
commit d11069f8bb
1 changed files with 4 additions and 1 deletions

View File

@ -1878,7 +1878,7 @@ static HRESULT WINAPI IShellView_fnCreateViewWindow(
*phWnd = CreateWindowExA(0, *phWnd = CreateWindowExA(0,
SV_CLASS_NAME, SV_CLASS_NAME,
NULL, NULL,
WS_CHILD | WS_VISIBLE | WS_TABSTOP, WS_CHILD | WS_TABSTOP,
prcView->left, prcView->left,
prcView->top, prcView->top,
prcView->right - prcView->left, prcView->right - prcView->left,
@ -1892,6 +1892,9 @@ static HRESULT WINAPI IShellView_fnCreateViewWindow(
if(!*phWnd) return E_FAIL; if(!*phWnd) return E_FAIL;
SetWindowPos(*phWnd, HWND_TOP, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE | SWP_SHOWWINDOW);
UpdateWindow(*phWnd);
return S_OK; return S_OK;
} }