Re: user32/tests: Add test for SetScrollInfo().
14 Jan
2013
14 Jan
'13
9:30 p.m.
Sergey Guralnik <serhio(a)etersoft.ru> writes:
+static void test_setscrollinfo ( HWND hwnd, INT nBar ) +{ + SCROLLINFO cur, expected; + char ok_format[] = "unexpected state: (bar: %d)\n" + " expected: min: %d, max: %d, page: %d, pos: %d\n" + " got: min: %d, max: %d, page: %d, pos: %d\n"; +#define SCROLL_OK_ARGS nBar, \ + expected.nMin, expected.nMax, expected.nPage, expected.nPos, \ + cur.nMin, cur.nMax, cur.nPage, cur.nPos
Please avoid that sort of macro abuse. Write an inline function if you don't want to duplicate the ok statement. -- Alexandre Julliard julliard(a)winehq.org
4716
Age (days ago)
4716
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard