From d149bd7fcdbf9a28d1bae95f4af9f0032756afa7 Mon Sep 17 00:00:00 2001 From: icemank Date: Mon, 14 Jul 2003 14:40:51 +0000 Subject: [PATCH] Fixed the resize bug. git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2717 212acab6-be3b-0410-9dea-997c60f758d6 --- Contrib/Makensisw/makensisw.cpp | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/Contrib/Makensisw/makensisw.cpp b/Contrib/Makensisw/makensisw.cpp index 6d7ae4bf..af8d8ea1 100644 --- a/Contrib/Makensisw/makensisw.cpp +++ b/Contrib/Makensisw/makensisw.cpp @@ -540,17 +540,19 @@ BOOL CALLBACK DialogResize(HWND hWnd, LPARAM /* unused */) GetWindowRect(hWnd, &r); ScreenToClient(g_sdata.hwnd, (LPPOINT)&r); ScreenToClient(g_sdata.hwnd, ((LPPOINT)&r)+1); - switch (GetDlgCtrlID(hWnd)) { - case IDC_LOGWIN: - SetWindowPos(hWnd, 0, r.left, r.top,r.right - r.left + g_resize.dx, r.bottom - r.top + g_resize.dy, SWP_NOZORDER|SWP_NOMOVE); - break; - case IDC_TEST: - case IDC_CLOSE: - SetWindowPos(hWnd, 0, r.left + g_resize.dx, r.top + g_resize.dy, 0, 0, SWP_NOZORDER|SWP_NOSIZE); - break; - default: - SetWindowPos(hWnd, 0, r.left, r.top + g_resize.dy, r.right - r.left + g_resize.dx, r.bottom - r.top, SWP_NOZORDER); - break; + if(hWnd != g_toolbar.hwnd) { + switch (GetDlgCtrlID(hWnd)) { + case IDC_LOGWIN: + SetWindowPos(hWnd, 0, r.left, r.top,r.right - r.left + g_resize.dx, r.bottom - r.top + g_resize.dy, SWP_NOZORDER|SWP_NOMOVE); + break; + case IDC_TEST: + case IDC_CLOSE: + SetWindowPos(hWnd, 0, r.left + g_resize.dx, r.top + g_resize.dy, 0, 0, SWP_NOZORDER|SWP_NOSIZE); + break; + default: + SetWindowPos(hWnd, 0, r.left, r.top + g_resize.dy, r.right - r.left + g_resize.dx, r.bottom - r.top, SWP_NOZORDER); + break; + } } RedrawWindow(hWnd,NULL,NULL,RDW_INVALIDATE); return TRUE;