Module: wine Branch: refs/heads/master Commit: d11069f8bb60f499d56d23a24552ce11f33eb1f0 URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=d11069f8bb60f499d56d23a2...
Author: Robert Shearman rob@codeweavers.com Date: Thu Jan 12 11:54:03 2006 +0100
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.
---
dlls/shell32/shlview.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/dlls/shell32/shlview.c b/dlls/shell32/shlview.c index a887c6e..f9f07ce 100644 --- a/dlls/shell32/shlview.c +++ b/dlls/shell32/shlview.c @@ -1878,7 +1878,7 @@ static HRESULT WINAPI IShellView_fnCreat *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_fnCreat
if(!*phWnd) return E_FAIL;
+ SetWindowPos(*phWnd, HWND_TOP, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE | SWP_SHOWWINDOW); + UpdateWindow(*phWnd); + return S_OK; }