From e2e20662003c30638a113030f95d49e36af3c861 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miko=C5=82aj=20Zalewski?= Date: Wed, 27 Feb 2008 18:21:40 +0100 Subject: [PATCH] wordpad: Always use RB_GETBARHEIGHT. --- programs/wordpad/wordpad.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/programs/wordpad/wordpad.c b/programs/wordpad/wordpad.c index e4a65026eb3..300376a6406 100644 --- a/programs/wordpad/wordpad.c +++ b/programs/wordpad/wordpad.c @@ -2269,7 +2269,6 @@ static LRESULT OnSize( HWND hWnd, WPARAM wParam, LPARAM lParam ) HWND hwndReBar = GetDlgItem(hWnd, IDC_REBAR); HWND hRulerWnd = GetDlgItem(hWnd, IDC_RULER); int rebarHeight = 0; - int rebarRows = 2; if (hwndStatusBar) { @@ -2285,13 +2284,7 @@ static LRESULT OnSize( HWND hWnd, WPARAM wParam, LPARAM lParam ) } if (hwndReBar) { - if(!is_bar_visible(BANDID_TOOLBAR)) - rebarRows--; - - if(!is_bar_visible(BANDID_FORMATBAR)) - rebarRows--; - - rebarHeight = rebarRows ? SendMessageW(hwndReBar, RB_GETBARHEIGHT, 0, 0) : 0; + rebarHeight = SendMessageW(hwndReBar, RB_GETBARHEIGHT, 0, 0); MoveWindow(hwndReBar, 0, 0, LOWORD(lParam), rebarHeight, TRUE); }