+ ok_size(s, textent.cx + 5 + 2 + 1,
+ textent.cy + 7 + 2);
+
+ SetRect(&imlData.margin, 1,1,1,1);
+ ret = SendMessageW(hwnd1, BCM_SETIMAGELIST, 0, (LPARAM)&imlData);
+ ok (ret == TRUE, "Expected BCM_SETIMAGELIST to fail\n");
+
+ memset(&s, 0, sizeof(s));
+ ret = SendMessageW(hwnd1, BCM_GETIDEALSIZE, 0, (LPARAM)&s);
+ ok (ret == TRUE, "Expected BCM_GETIDEALSIZE to succeed\n");
+ /* expected width = text width + hardcoded value + text margins + image width + image margins */
+ ok_size(s, textent.cx + 5 + 2 + 1 + 2,
+ textent.cy + 7 + 2);
+
+ SetRect(&imlData.margin, 50,50,50,50);
+ ret = SendMessageW(hwnd1, BCM_SETIMAGELIST, 0, (LPARAM)&imlData);
+ ok (ret == TRUE, "Expected BCM_SETIMAGELIST to fail\n");
+
+ memset(&s, 0, sizeof(s));
+ ret = SendMessageW(hwnd1, BCM_GETIDEALSIZE, 0, (LPARAM)&s);
+ ok (ret == TRUE, "Expected BCM_GETIDEALSIZE to succeed\n");
+ /* image + its margins is so big that the height is dictated by them */
+ ok_size(s, textent.cx + 5 + 2 + 1 + 100, 101);