From bb1a13774ef1d104a0e0b2b8bab229fb87b20490 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alexander=20Nicolaysen=20S=C3=B8rnes?= Date: Thu, 14 Jun 2007 22:09:33 +0200 Subject: [PATCH] wordpad: Remove unnecessary toolbar resizing code. --- programs/wordpad/wordpad.c | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/programs/wordpad/wordpad.c b/programs/wordpad/wordpad.c index 12c2d436e90..1b859b775da 100644 --- a/programs/wordpad/wordpad.c +++ b/programs/wordpad/wordpad.c @@ -822,8 +822,6 @@ static LRESULT OnSize( HWND hWnd, WPARAM wParam, LPARAM lParam ) HWND hwndEditor = GetDlgItem(hWnd, IDC_EDITOR); HWND hwndStatusBar = GetDlgItem(hWnd, IDC_STATUSBAR); HWND hwndReBar = GetDlgItem(hWnd, IDC_REBAR); - HWND hwndToolBar = GetDlgItem(hwndReBar, IDC_TOOLBAR); - HWND hwndFormatBar = GetDlgItem(hwndReBar, IDC_FORMATBAR); int rebarHeight = 0; REBARBANDINFOW rbbinfo; int rebarRows = 2; @@ -840,26 +838,6 @@ static LRESULT OnSize( HWND hWnd, WPARAM wParam, LPARAM lParam ) nStatusSize = 0; } } - if (hwndToolBar) - { - rc.left = rc.top = 0; - rc.right = LOWORD(lParam); - rc.bottom = HIWORD(lParam); - SendMessageW(hwndToolBar, TB_AUTOSIZE, 0, 0); - SendMessageW(hwndReBar, RB_SIZETORECT, 0, (LPARAM)&rc); - GetClientRect(hwndReBar, &rc); - MoveWindow(hwndReBar, 0, 0, LOWORD(lParam), rc.right, FALSE); - } - if (hwndFormatBar) - { - rc.left = rc.top = 0; - rc.right = LOWORD(lParam); - rc.bottom = HIWORD(lParam); - SendMessageW(hwndFormatBar, TB_AUTOSIZE, 0, 0); - SendMessageW(hwndReBar, RB_SIZETORECT, 0, (LPARAM)&rc); - GetClientRect(hwndReBar, &rc); - MoveWindow(hwndReBar, 0, 0, LOWORD(lParam), rc.right, FALSE); - } if (hwndReBar) { rbbinfo.cbSize = sizeof(rbbinfo); -- 2.11.4.GIT