Author: gadamopoulos
Date: Fri Mar  3 11:30:06 2017
New Revision: 74035

URL: http://svn.reactos.org/svn/reactos?rev=74035&view=rev
Log:
[COMCTL32_APITEST]: Add a few more tests.

Modified:
    trunk/rostests/apitests/comctl32/button.c

Modified: trunk/rostests/apitests/comctl32/button.c
URL: 
http://svn.reactos.org/svn/reactos/trunk/rostests/apitests/comctl32/button.c?rev=74035&r1=74034&r2=74035&view=diff
==============================================================================
--- trunk/rostests/apitests/comctl32/button.c   [iso-8859-1] (original)
+++ trunk/rostests/apitests/comctl32/button.c   [iso-8859-1] Fri Mar  3 
11:30:06 2017
@@ -398,6 +398,14 @@
         ok (ret == TRUE, "Expected BCM_GETIDEALSIZE to succeed\n");
         ok_size(s, 123, 72);
         DestroyWindow(hwnd2);
+        
+        hwnd2 = CreateWindowW(L"Button", L"", i, 0, 0, 150, 72, hwnd1, NULL, 
NULL, NULL);
+        ok (hwnd2 != NULL, "Expected CreateWindowW to succeed\n");
+        memset(&s, 0, sizeof(s));
+        ret = SendMessageW(hwnd2, BCM_GETIDEALSIZE, 0, (LPARAM)&s);
+        ok (ret == TRUE, "Expected BCM_GETIDEALSIZE to succeed\n");
+        ok_size(s, 150, 72);
+        DestroyWindow(hwnd2);
     }
     DestroyWindow(hwnd1);
 }


Reply via email to