comctl32: Store the previous timeout value to test with.

This commit is contained in:
James Hawkins 2008-09-08 05:38:33 -05:00 committed by Alexandre Julliard
parent 6e7c73cacf
commit cc0ea85c34

View file

@ -999,7 +999,7 @@ static void test_hdm_imageMessages(HWND hParent)
static void test_hdm_filterMessages(HWND hParent)
{
HWND hChild;
int retVal;
int retVal, timeout;
flush_sequences(sequences, NUM_MSG_SEQUENCES);
hChild = create_custom_header_control(hParent, TRUE);
@ -1007,16 +1007,22 @@ static void test_hdm_filterMessages(HWND hParent)
ok_sequence(sequences, PARENT_SEQ_INDEX, add_header_to_parent_seq,
"adder header control to parent", FALSE);
timeout = SendMessage(hChild, HDM_SETFILTERCHANGETIMEOUT, 1, 100);
SendMessage(hChild, HDM_SETFILTERCHANGETIMEOUT, 1, timeout);
flush_sequences(sequences, NUM_MSG_SEQUENCES);
todo_wine
{
/* msdn incorrectly states that return value
* is the index of the filter control being
* modified. The sendMessage here should
* return previous filter timeout value
*/
retVal = SendMessage(hChild, HDM_SETFILTERCHANGETIMEOUT, 1, 100);
expect(1000, retVal);
expect(timeout, retVal);
todo_wine
{
retVal = SendMessage(hChild, HDM_CLEARFILTER, 0, 1);
expect(1, retVal);
retVal = SendMessage(hChild, HDM_EDITFILTER, 1, 0);