Commit 0b381cee authored by Alexander Nicolaysen Sørnes's avatar Alexander Nicolaysen Sørnes Committed by Alexandre Julliard

wordpad: Resize rebar control on window resize.

parent 8dac319a
......@@ -986,6 +986,11 @@ static LRESULT OnSize( HWND hWnd, WPARAM wParam, LPARAM lParam )
rebarRows--;
rebarHeight = rebarRows ? SendMessageW(hwndReBar, RB_GETBARHEIGHT, 0, 0) : 0;
rc.top = rc.left = 0;
rc.bottom = rebarHeight;
rc.right = LOWORD(lParam);
SendMessageW(hwndReBar, RB_SIZETORECT, 0, (LPARAM)&rc);
}
if (hwndEditor)
{
......
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