Module: wine Branch: master Commit: d03e63ccd7bc52a0aedb249feeea6739d930413a URL: http://source.winehq.org/git/wine.git/?a=commit;h=d03e63ccd7bc52a0aedb249fee...
Author: Nikolay Sivov bunglehead@gmail.com Date: Mon Jun 22 21:39:46 2009 +0400
comctl32/listview: Test for parent sequence when creating with LVS_OWNERDRAWFIXED.
---
dlls/comctl32/tests/listview.c | 15 +++++++++++++++ 1 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/dlls/comctl32/tests/listview.c b/dlls/comctl32/tests/listview.c index 2d697bb..820acc6 100644 --- a/dlls/comctl32/tests/listview.c +++ b/dlls/comctl32/tests/listview.c @@ -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)