Commit 106791c6 authored by James Hawkins's avatar James Hawkins Committed by Alexandre Julliard

comctl32: Fix several test failures in win98.

parent 66483daf
...@@ -89,7 +89,7 @@ static const struct message add_header_to_parent_seq_interactive[] = { ...@@ -89,7 +89,7 @@ static const struct message add_header_to_parent_seq_interactive[] = {
static const struct message add_header_to_parent_seq[] = { static const struct message add_header_to_parent_seq[] = {
{ WM_NOTIFYFORMAT, sent|lparam, 0, NF_QUERY }, { WM_NOTIFYFORMAT, sent|lparam, 0, NF_QUERY },
{ WM_QUERYUISTATE, sent }, { WM_QUERYUISTATE, sent|optional },
{ WM_PARENTNOTIFY, sent }, { WM_PARENTNOTIFY, sent },
{ 0 } { 0 }
}; };
...@@ -196,8 +196,8 @@ static const struct message filterMessages_seq_noninteractive[] = { ...@@ -196,8 +196,8 @@ static const struct message filterMessages_seq_noninteractive[] = {
{ HDM_SETFILTERCHANGETIMEOUT, sent|wparam|lparam, 1, 100 }, { HDM_SETFILTERCHANGETIMEOUT, sent|wparam|lparam, 1, 100 },
{ HDM_CLEARFILTER, sent|wparam|lparam, 0, 1 }, { HDM_CLEARFILTER, sent|wparam|lparam, 0, 1 },
{ HDM_EDITFILTER, sent|wparam|lparam, 1, 0 }, { HDM_EDITFILTER, sent|wparam|lparam, 1, 0 },
{ WM_PARENTNOTIFY, sent|wparam|defwinproc, WM_CREATE }, { WM_PARENTNOTIFY, sent|wparam|defwinproc|optional, WM_CREATE },
{ WM_COMMAND, sent|defwinproc }, { WM_COMMAND, sent|defwinproc|optional },
{ 0 } { 0 }
}; };
...@@ -811,7 +811,7 @@ static void test_hdm_getitemrect(HWND hParent) ...@@ -811,7 +811,7 @@ static void test_hdm_getitemrect(HWND hParent)
flush_sequences(sequences, NUM_MSG_SEQUENCES); flush_sequences(sequences, NUM_MSG_SEQUENCES);
hChild = create_custom_header_control(hParent, TRUE); hChild = create_custom_header_control(hParent, TRUE);
ok_sequence(sequences, PARENT_SEQ_INDEX, add_header_to_parent_seq, ok_sequence(sequences, PARENT_SEQ_INDEX, add_header_to_parent_seq,
"adder header control to parent", TRUE); "adder header control to parent", FALSE);
retVal = SendMessage(hChild, HDM_GETITEMRECT, 1, (LPARAM) &rect); retVal = SendMessage(hChild, HDM_GETITEMRECT, 1, (LPARAM) &rect);
ok(retVal == TRUE, "Getting item rect should TRUE, got %d\n", retVal); ok(retVal == TRUE, "Getting item rect should TRUE, got %d\n", retVal);
...@@ -855,7 +855,7 @@ static void test_hdm_layout(HWND hParent) ...@@ -855,7 +855,7 @@ static void test_hdm_layout(HWND hParent)
flush_sequences(sequences, NUM_MSG_SEQUENCES); flush_sequences(sequences, NUM_MSG_SEQUENCES);
hChild = create_custom_header_control(hParent, TRUE); hChild = create_custom_header_control(hParent, TRUE);
ok_sequence(sequences, PARENT_SEQ_INDEX, add_header_to_parent_seq, ok_sequence(sequences, PARENT_SEQ_INDEX, add_header_to_parent_seq,
"adder header control to parent", TRUE); "adder header control to parent", FALSE);
flush_sequences(sequences, NUM_MSG_SEQUENCES); flush_sequences(sequences, NUM_MSG_SEQUENCES);
retVal = SendMessage(hChild, HDM_LAYOUT, 0, (LPARAM) &hdLayout); retVal = SendMessage(hChild, HDM_LAYOUT, 0, (LPARAM) &hdLayout);
...@@ -874,7 +874,7 @@ static void test_hdm_ordertoindex(HWND hParent) ...@@ -874,7 +874,7 @@ static void test_hdm_ordertoindex(HWND hParent)
flush_sequences(sequences, NUM_MSG_SEQUENCES); flush_sequences(sequences, NUM_MSG_SEQUENCES);
hChild = create_custom_header_control(hParent, TRUE); hChild = create_custom_header_control(hParent, TRUE);
ok_sequence(sequences, PARENT_SEQ_INDEX, add_header_to_parent_seq, ok_sequence(sequences, PARENT_SEQ_INDEX, add_header_to_parent_seq,
"adder header control to parent", TRUE); "adder header control to parent", FALSE);
flush_sequences(sequences, NUM_MSG_SEQUENCES); flush_sequences(sequences, NUM_MSG_SEQUENCES);
retVal = SendMessage(hChild, HDM_ORDERTOINDEX, 1, 0); retVal = SendMessage(hChild, HDM_ORDERTOINDEX, 1, 0);
...@@ -902,7 +902,7 @@ static void test_hdm_hittest(HWND hParent) ...@@ -902,7 +902,7 @@ static void test_hdm_hittest(HWND hParent)
flush_sequences(sequences, NUM_MSG_SEQUENCES); flush_sequences(sequences, NUM_MSG_SEQUENCES);
hChild = create_custom_header_control(hParent, TRUE); hChild = create_custom_header_control(hParent, TRUE);
ok_sequence(sequences, PARENT_SEQ_INDEX, add_header_to_parent_seq, ok_sequence(sequences, PARENT_SEQ_INDEX, add_header_to_parent_seq,
"adder header control to parent", TRUE); "adder header control to parent", FALSE);
flush_sequences(sequences, NUM_MSG_SEQUENCES); flush_sequences(sequences, NUM_MSG_SEQUENCES);
retVal = SendMessage(hChild, HDM_HITTEST, 0, (LPARAM) &hdHitTestInfo); retVal = SendMessage(hChild, HDM_HITTEST, 0, (LPARAM) &hdHitTestInfo);
...@@ -947,7 +947,7 @@ static void test_hdm_sethotdivider(HWND hParent) ...@@ -947,7 +947,7 @@ static void test_hdm_sethotdivider(HWND hParent)
flush_sequences(sequences, NUM_MSG_SEQUENCES); flush_sequences(sequences, NUM_MSG_SEQUENCES);
hChild = create_custom_header_control(hParent, TRUE); hChild = create_custom_header_control(hParent, TRUE);
ok_sequence(sequences, PARENT_SEQ_INDEX, add_header_to_parent_seq, ok_sequence(sequences, PARENT_SEQ_INDEX, add_header_to_parent_seq,
"adder header control to parent", TRUE); "adder header control to parent", FALSE);
flush_sequences(sequences, NUM_MSG_SEQUENCES); flush_sequences(sequences, NUM_MSG_SEQUENCES);
todo_wine todo_wine
...@@ -978,7 +978,7 @@ static void test_hdm_imageMessages(HWND hParent) ...@@ -978,7 +978,7 @@ static void test_hdm_imageMessages(HWND hParent)
flush_sequences(sequences, NUM_MSG_SEQUENCES); flush_sequences(sequences, NUM_MSG_SEQUENCES);
hChild = create_custom_header_control(hParent, TRUE); hChild = create_custom_header_control(hParent, TRUE);
ok_sequence(sequences, PARENT_SEQ_INDEX, add_header_to_parent_seq, ok_sequence(sequences, PARENT_SEQ_INDEX, add_header_to_parent_seq,
"adder header control to parent", TRUE); "adder header control to parent", FALSE);
flush_sequences(sequences, NUM_MSG_SEQUENCES); flush_sequences(sequences, NUM_MSG_SEQUENCES);
...@@ -1005,7 +1005,7 @@ static void test_hdm_filterMessages(HWND hParent) ...@@ -1005,7 +1005,7 @@ static void test_hdm_filterMessages(HWND hParent)
hChild = create_custom_header_control(hParent, TRUE); hChild = create_custom_header_control(hParent, TRUE);
assert(hChild); assert(hChild);
ok_sequence(sequences, PARENT_SEQ_INDEX, add_header_to_parent_seq, ok_sequence(sequences, PARENT_SEQ_INDEX, add_header_to_parent_seq,
"adder header control to parent", TRUE); "adder header control to parent", FALSE);
flush_sequences(sequences, NUM_MSG_SEQUENCES); flush_sequences(sequences, NUM_MSG_SEQUENCES);
todo_wine todo_wine
...@@ -1027,7 +1027,7 @@ static void test_hdm_filterMessages(HWND hParent) ...@@ -1027,7 +1027,7 @@ static void test_hdm_filterMessages(HWND hParent)
"filterMessages sequence testing", TRUE); "filterMessages sequence testing", TRUE);
else else
ok_sequence(sequences, HEADER_SEQ_INDEX, filterMessages_seq_noninteractive, ok_sequence(sequences, HEADER_SEQ_INDEX, filterMessages_seq_noninteractive,
"filterMessages sequence testing", TRUE); "filterMessages sequence testing", FALSE);
DestroyWindow(hChild); DestroyWindow(hChild);
} }
...@@ -1040,7 +1040,7 @@ static void test_hdm_unicodeformatMessages(HWND hParent) ...@@ -1040,7 +1040,7 @@ static void test_hdm_unicodeformatMessages(HWND hParent)
flush_sequences(sequences, NUM_MSG_SEQUENCES); flush_sequences(sequences, NUM_MSG_SEQUENCES);
hChild = create_custom_header_control(hParent, TRUE); hChild = create_custom_header_control(hParent, TRUE);
ok_sequence(sequences, PARENT_SEQ_INDEX, add_header_to_parent_seq, ok_sequence(sequences, PARENT_SEQ_INDEX, add_header_to_parent_seq,
"adder header control to parent", TRUE); "adder header control to parent", FALSE);
flush_sequences(sequences, NUM_MSG_SEQUENCES); flush_sequences(sequences, NUM_MSG_SEQUENCES);
retVal = SendMessage(hChild, HDM_SETUNICODEFORMAT, TRUE, 0); retVal = SendMessage(hChild, HDM_SETUNICODEFORMAT, TRUE, 0);
...@@ -1061,7 +1061,7 @@ static void test_hdm_bitmapmarginMessages(HWND hParent) ...@@ -1061,7 +1061,7 @@ static void test_hdm_bitmapmarginMessages(HWND hParent)
flush_sequences(sequences, NUM_MSG_SEQUENCES); flush_sequences(sequences, NUM_MSG_SEQUENCES);
hChild = create_custom_header_control(hParent, TRUE); hChild = create_custom_header_control(hParent, TRUE);
ok_sequence(sequences, PARENT_SEQ_INDEX, add_header_to_parent_seq, ok_sequence(sequences, PARENT_SEQ_INDEX, add_header_to_parent_seq,
"adder header control to parent", TRUE); "adder header control to parent", FALSE);
flush_sequences(sequences, NUM_MSG_SEQUENCES); flush_sequences(sequences, NUM_MSG_SEQUENCES);
retVal = SendMessage(hChild, HDM_GETBITMAPMARGIN, 0, 0); retVal = SendMessage(hChild, HDM_GETBITMAPMARGIN, 0, 0);
...@@ -1100,7 +1100,7 @@ static void test_hdm_index_messages(HWND hParent) ...@@ -1100,7 +1100,7 @@ static void test_hdm_index_messages(HWND hParent)
"adder header control to parent", TRUE); "adder header control to parent", TRUE);
else else
ok_sequence(sequences, PARENT_SEQ_INDEX, add_header_to_parent_seq, ok_sequence(sequences, PARENT_SEQ_INDEX, add_header_to_parent_seq,
"adder header control to parent", TRUE); "adder header control to parent", FALSE);
flush_sequences(sequences, NUM_MSG_SEQUENCES); flush_sequences(sequences, NUM_MSG_SEQUENCES);
for ( loopcnt = 0 ; loopcnt < 4 ; loopcnt++ ) for ( loopcnt = 0 ; loopcnt < 4 ; loopcnt++ )
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment