user32/tests: Add test for SetScrollInfo().

Alexandre Julliard julliard at winehq.org
Mon Jan 14 15:30:42 CST 2013


Sergey Guralnik <serhio at 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 at winehq.org



More information about the wine-devel mailing list