comctl32/listview: Test for parent sequence when creating with LVS_OWNERDRAWFIXED.

This commit is contained in:
Nikolay Sivov 2009-06-22 21:39:46 +04:00 committed by Alexandre Julliard
parent 6ddc981c2b
commit d03e63ccd7
1 changed files with 15 additions and 0 deletions

View File

@ -114,6 +114,14 @@ static const struct message create_parent_wnd_seq[] = {
{ 0 }
};
static const struct message create_ownerdrawfixed_parent_seq[] = {
{ WM_NOTIFYFORMAT, sent },
{ WM_QUERYUISTATE, sent|optional }, /* Win2K and higher */
{ WM_MEASUREITEM, sent },
{ WM_PARENTNOTIFY, sent },
{ 0 }
};
static const struct message redraw_listview_seq[] = {
{ WM_PAINT, sent|id, 0, 0, LISTVIEW_ID },
{ WM_PAINT, sent|id, 0, 0, HEADER_ID },
@ -1392,6 +1400,13 @@ static void test_create(void)
ok(NULL == GetDlgItem(hList, 0), "NULL dialog item expected\n");
DestroyWindow(hList);
/* WM_MEASUREITEM should be sent when created with LVS_OWNERDRAWFIXED */
flush_sequences(sequences, NUM_MSG_SEQUENCES);
hList = create_listview_control(LVS_OWNERDRAWFIXED);
ok_sequence(sequences, PARENT_SEQ_INDEX, create_ownerdrawfixed_parent_seq,
"created with LVS_OWNERDRAWFIXED - parent seq", TRUE);
DestroyWindow(hList);
}
static void test_redraw(void)