mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 20:59:54 +00:00
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:
parent
9227902714
commit
d11069f8bb
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user