wordpad: Always use RB_GETBARHEIGHT.

This commit is contained in:
Mikołaj Zalewski 2008-02-27 18:21:40 +01:00 committed by Alexandre Julliard
parent 23b0085a25
commit e2e2066200
1 changed files with 1 additions and 8 deletions

View File

@ -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);
}