comctl32/tests: Use UDM_GET/SETPOS instead of UDM_GET/SETPOS32 for compatibility with old versions.
This commit is contained in:
parent
ae2b8a6e97
commit
d0aaae9987
|
@ -513,7 +513,7 @@ static void test_updown_base(void)
|
||||||
/* switch base with buddy attached */
|
/* switch base with buddy attached */
|
||||||
updown = create_updown_control(UDS_SETBUDDYINT);
|
updown = create_updown_control(UDS_SETBUDDYINT);
|
||||||
|
|
||||||
r = SendMessage(updown, UDM_SETPOS32, 0, 10);
|
r = SendMessage(updown, UDM_SETPOS, 0, 10);
|
||||||
expect(50, r);
|
expect(50, r);
|
||||||
|
|
||||||
GetWindowTextA(edit, text, sizeof(text)/sizeof(CHAR));
|
GetWindowTextA(edit, text, sizeof(text)/sizeof(CHAR));
|
||||||
|
@ -587,7 +587,6 @@ static void test_UDS_SETBUDDYINT(void)
|
||||||
HWND updown;
|
HWND updown;
|
||||||
DWORD style, ret;
|
DWORD style, ret;
|
||||||
CHAR text[10];
|
CHAR text[10];
|
||||||
BOOL b;
|
|
||||||
|
|
||||||
/* cleanup buddy */
|
/* cleanup buddy */
|
||||||
text[0] = '\0';
|
text[0] = '\0';
|
||||||
|
@ -619,7 +618,7 @@ static void test_UDS_SETBUDDYINT(void)
|
||||||
/* set edit text directly, check position */
|
/* set edit text directly, check position */
|
||||||
strcpy(text, "10");
|
strcpy(text, "10");
|
||||||
SetWindowTextA(edit, text);
|
SetWindowTextA(edit, text);
|
||||||
ret = SendMessageA(updown, UDM_GETPOS32, 0, 0);
|
ret = SendMessageA(updown, UDM_GETPOS, 0, 0);
|
||||||
expect(10, ret);
|
expect(10, ret);
|
||||||
strcpy(text, "11");
|
strcpy(text, "11");
|
||||||
SetWindowTextA(edit, text);
|
SetWindowTextA(edit, text);
|
||||||
|
@ -629,10 +628,9 @@ static void test_UDS_SETBUDDYINT(void)
|
||||||
/* set to invalid value */
|
/* set to invalid value */
|
||||||
strcpy(text, "21st");
|
strcpy(text, "21st");
|
||||||
SetWindowTextA(edit, text);
|
SetWindowTextA(edit, text);
|
||||||
b = FALSE;
|
ret = SendMessageA(updown, UDM_GETPOS, 0, 0);
|
||||||
ret = SendMessageA(updown, UDM_GETPOS32, 0, (LPARAM)&b);
|
expect(11, LOWORD(ret));
|
||||||
expect(11, ret);
|
expect(TRUE, HIWORD(ret));
|
||||||
expect(TRUE, b);
|
|
||||||
/* set style back */
|
/* set style back */
|
||||||
style = GetWindowLongA(updown, GWL_STYLE);
|
style = GetWindowLongA(updown, GWL_STYLE);
|
||||||
SetWindowLongA(updown, GWL_STYLE, style | UDS_SETBUDDYINT);
|
SetWindowLongA(updown, GWL_STYLE, style | UDS_SETBUDDYINT);
|
||||||
|
|
Loading…
Reference in New Issue