user32: Add check for the need to redraw static control afterSTM_SETIMAGE and STM_SETICON

Dmitry Timoshkov dmitry at codeweavers.com
Mon Sep 28 05:39:48 CDT 2009


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

> Yes, MSDN tells about 0. The -1 value is used for detecting the errors inside 
> Wine and blocking the static controls redrawing. Then the 0 value is returned 
> to application:
> 
> - STATIC_TryPaintFcn( hwnd, full_style );
> + if (lResult != -1)
> + STATIC_TryPaintFcn( hwnd, full_style );
> + else
> + lResult = 0;
> 
> Tests for checking STM_SETIMAGE and STM_SETICON messages processing had been 
> sent above:
> 
> [TRY 3] user32/tests: Add tests for STM_SETIMAGE and STM_SETICON message 
> processing
> 
> Is there a better way to block this redrawing?

First thing to do (as usual) is to add the test to show the drawing
behaviour.

-- 
Dmitry.




More information about the wine-devel mailing list