user32/tests: Add tests for STM_SETIMAGE and STM_SETICON messageprocessing

Dmitry Timoshkov dmitry at codeweavers.com
Mon Sep 21 21:53:31 CDT 2009


"Ilya Shpigor" <shpigor at etersoft.ru> wrote:

> +    SendMessageW(hStatic, STM_SETIMAGE, (WPARAM)IMAGE_BITMAP, (LPARAM)hbm);
> +    res = SendMessageW(hStatic, STM_SETIMAGE, (WPARAM)IMAGE_BITMAP, (LPARAM)hbm);
> +    ok(!res, "expected NULL got 0x%lx\n", res);
> +
> +    SendMessageW(hStatic, STM_SETIMAGE, (WPARAM)IMAGE_ICON, (LPARAM)hicon);
> +    res = SendMessageW(hStatic, STM_SETIMAGE, (WPARAM)IMAGE_ICON, (LPARAM)hicon);
> +    ok(!res, "expected NULL got 0x%lx\n", res);
> +
> +    SendMessageW(hStatic, STM_SETICON, (WPARAM)hicon, 0);
> +    res = SendMessageW(hStatic, STM_SETICON, (WPARAM)hicon, 0);
> +    ok(!res, "expected NULL got 0x%lx\n", res);
> +
> +    SendMessageW(hStatic, STM_SETIMAGE, (WPARAM)IMAGE_ENHMETAFILE, (LPARAM)hemf);
> +    res = SendMessageW(hStatic, STM_SETIMAGE, (WPARAM)IMAGE_ENHMETAFILE, (LPARAM)hemf);
> +    ok(!res, "expected NULL got 0x%lx\n", res);

Is there a reason you are calling SendMessageW twice (here and in the following tests)?

-- 
Dmitry.



More information about the wine-devel mailing list