"Ilya Shpigor" <shpigor(a)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.