+ for (i = BS_CHECKBOX; i <= BS_OWNERDRAW; i++)
+ {
+ if (i == BS_USERBUTTON)
+ continue;
+
+ hwnd2 = CreateWindowW(L"Button", L" ", i, 0, 0, 72, 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, 123, 72);
+
+ SetWindowTheme(hwnd2, L"", L"");
+ 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, 123, 72);
+ DestroyWindow(hwnd2);
+
+ hwnd2 = CreateWindowW(L"Button", L" ", i, 0, 0, 12, 12, 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, 123, 34);
+ DestroyWindow(hwnd2);
+
+ hwnd2 = CreateWindowW(L"Button", L"", i, 0, 0, 72, 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, 123, 72);
+ DestroyWindow(hwnd2);
+ }
+ DestroyWindow(hwnd1);