From 163914380e1569bf585834e2c4da91ba9e70bf72 Mon Sep 17 00:00:00 2001 From: Rein Klazes Date: Tue, 30 Jun 2009 16:30:45 +0200 Subject: [PATCH] comdlg32: Fix resizing of the file dialog browser that keeps returning to its original size. --- dlls/comdlg32/filedlg.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dlls/comdlg32/filedlg.c b/dlls/comdlg32/filedlg.c index 6f89697962..e2d6a30209 100644 --- a/dlls/comdlg32/filedlg.c +++ b/dlls/comdlg32/filedlg.c @@ -1051,6 +1051,13 @@ static LRESULT FILEDLG95_OnWMSize(HWND hwnd, WPARAM wParam, LPARAM lParam) 0, 0, SWP_NOSIZE | SWP_NOACTIVATE | SWP_NOZORDER); } + else if( GetDlgCtrlID( ctrl) == IDC_SHELLSTATIC) + { + DeferWindowPos( hdwp, ctrl, NULL, 0, 0, + rc.right - rc.left + chgx, + rc.bottom - rc.top + chgy, + SWP_NOMOVE | SWP_NOACTIVATE | SWP_NOZORDER); + } else if( rc.top > rcview.bottom) { /* if it was below the shell view