comctl32/listview: Test for parent sequence when creating with LVS_OWNERDRAWFIXED.
This commit is contained in:
parent
6ddc981c2b
commit
d03e63ccd7
@ -114,6 +114,14 @@ static const struct message create_parent_wnd_seq[] = {
|
|||||||
{ 0 }
|
{ 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[] = {
|
static const struct message redraw_listview_seq[] = {
|
||||||
{ WM_PAINT, sent|id, 0, 0, LISTVIEW_ID },
|
{ WM_PAINT, sent|id, 0, 0, LISTVIEW_ID },
|
||||||
{ WM_PAINT, sent|id, 0, 0, HEADER_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");
|
ok(NULL == GetDlgItem(hList, 0), "NULL dialog item expected\n");
|
||||||
|
|
||||||
DestroyWindow(hList);
|
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)
|
static void test_redraw(void)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user