comctl32/listview: Skip LVS_EX_CHECKBOXES tests when this style is unsupported.

This commit is contained in:
Nikolay Sivov 2009-09-23 01:56:02 +04:00 committed by Alexandre Julliard
parent a8c19696f1
commit df3f2a1b13
1 changed files with 6 additions and 1 deletions

View File

@ -837,7 +837,12 @@ static void test_checkboxes(void)
item.mask = LVIF_STATE;
item.stateMask = 0xffff;
r = SendMessage(hwnd, LVM_GETITEMA, 0, (LPARAM) &item);
ok(item.state == 0x1ccc, "state %x\n", item.state);
if (item.state != 0x1ccc)
{
win_skip("LVS_EX_CHECKBOXES style is unavailable. Skipping.\n");
DestroyWindow(hwnd);
return;
}
/* Now add an item without specifying a state and check that its state goes to 0x1000 */
item.iItem = 2;