[PATCH 3/4] Explicitly set required control size

Nikolay Sivov bunglehead at gmail.com
Sun Oct 18 06:33:36 CDT 2009


---
 dlls/comctl32/tests/monthcal.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/dlls/comctl32/tests/monthcal.c b/dlls/comctl32/tests/monthcal.c
index f59614c..79f6a1d 100644
--- a/dlls/comctl32/tests/monthcal.c
+++ b/dlls/comctl32/tests/monthcal.c
@@ -1351,6 +1351,11 @@ static void test_monthcal_monthrange(void)
     /* to be locale independent */
     SendMessage(hwnd, MCM_SETFIRSTDAYOFWEEK, 0, (LPARAM)6);
 
+    res = SendMessage(hwnd, MCM_GETMINREQRECT, 0, (LPARAM)&r);
+    expect(TRUE, res);
+    /* resize control to display two Calendars */
+    MoveWindow(hwnd, 0, 0, r.right, (5/2)*r.bottom, FALSE);  
+
     flush_sequences(sequences, NUM_MSG_SEQUENCES);
 
     res = SendMessage(hwnd, MCM_GETMONTHRANGE, GMR_VISIBLE, (LPARAM)st_visible);
@@ -1383,7 +1388,6 @@ static void test_monthcal_monthrange(void)
     ok_sequence(sequences, MONTHCAL_SEQ_INDEX, monthcal_monthrange_seq, "monthcal monthrange", FALSE);
 
     /* resize control to display single Calendar */
-    res = SendMessage(hwnd, MCM_GETMINREQRECT, 0, (LPARAM)&r);
     MoveWindow(hwnd, 0, 0, r.right, r.bottom, FALSE);
 
     memset(&st, 0, sizeof(st));
-- 
1.5.6.5


--=-vwZYeYQ0NuRfRdAJ09FJ--




More information about the wine-patches mailing list