Alexander Nicolaysen Sørnes : wordpad: Resize rebar control on window resize.

Alexandre Julliard julliard at wine.codeweavers.com
Fri Jul 20 06:02:27 CDT 2007


Module: wine
Branch: master
Commit: 0b381cee3075041871c5d9648f63c1f88ae78fcc
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=0b381cee3075041871c5d9648f63c1f88ae78fcc

Author: Alexander Nicolaysen Sørnes <alex at thehandofagony.com>
Date:   Thu Jul 19 00:24:45 2007 +0200

wordpad: Resize rebar control on window resize.

---

 programs/wordpad/wordpad.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/programs/wordpad/wordpad.c b/programs/wordpad/wordpad.c
index 14f82f4..e380628 100644
--- a/programs/wordpad/wordpad.c
+++ b/programs/wordpad/wordpad.c
@@ -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)
     {




More information about the wine-cvs mailing list