Commit e2e20662 authored by Mikołaj Zalewski's avatar Mikołaj Zalewski Committed by Alexandre Julliard

wordpad: Always use RB_GETBARHEIGHT.

parent 23b0085a
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment