Mikołaj Zalewski : wordpad: Always use RB_GETBARHEIGHT .

Alexandre Julliard julliard at winehq.org
Thu Feb 28 06:21:37 CST 2008


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

Author: Mikołaj Zalewski <mikolaj at zalewski.pl>
Date:   Wed Feb 27 18:21:40 2008 +0100

wordpad: Always use RB_GETBARHEIGHT.

---

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

diff --git a/programs/wordpad/wordpad.c b/programs/wordpad/wordpad.c
index e4a6502..300376a 100644
--- a/programs/wordpad/wordpad.c
+++ b/programs/wordpad/wordpad.c
@@ -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);
     }




More information about the wine-cvs mailing list