[TRY 4] user32/tests: Add tests for STM_SETIMAGE and STM_SETICONmessage processing

Dmitry Timoshkov dmitry at codeweavers.com
Tue Sep 29 01:57:45 CDT 2009


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

> +    flush_sequence();
> +    SendMessageW(hwnd, STM_SETIMAGE, (WPARAM)IMAGE_BITMAP, (LPARAM)hbm);
> +    todo_wine ok_sequence(WmSetImageErrStaticSeq, "STM_SETIMAGE on a static", FALSE);
> +
> +    flush_sequence();
> +    SendMessageW(hwnd, STM_SETIMAGE, (WPARAM)IMAGE_ICON, (LPARAM)hicon);
> +    todo_wine ok_sequence(WmSetImageErrStaticSeq, "STM_SETIMAGE on a static", FALSE);
> +
> +    flush_sequence();
> +    SendMessageW(hwnd, STM_SETICON, (WPARAM)hicon, 0);
> +    todo_wine ok_sequence(WmSetIconErrStaticSeq, "STM_SETICON on a static", FALSE);
> +
> +    flush_sequence();
> +    SendMessageW(hwnd, STM_SETIMAGE, (WPARAM)IMAGE_ENHMETAFILE, (LPARAM)hemf);
> +    todo_wine ok_sequence(WmSetImageErrStaticSeq, "STM_SETIMAGE on a static", FALSE);

You should use SendMessageA instead of SendMessageW to make the test run
under Win9x as well. Testing the return value of SendMessage would be also
helpful.

-- 
Dmitry.



More information about the wine-devel mailing list