user32: Draw the whole button only if requested.

Alexandre Julliard julliard at winehq.org
Wed Jul 22 04:31:58 CDT 2009


Dmitry Timoshkov <dmitry at codeweavers.com> writes:

> @@ -847,7 +847,8 @@ static void PB_Paint( HWND hwnd, HDC hDC, UINT action )
>      if (state & (BUTTON_CHECKED | BUTTON_3STATE))
>          uState |= DFCS_CHECKED;
>  
> -    DrawFrameControl( hDC, &rc, DFC_BUTTON, uState );
> +    if (action == ODA_DRAWENTIRE)
> +        DrawFrameControl( hDC, &rc, DFC_BUTTON, uState );

It doesn't seem right to do only half the drawing operations. If we are
not doing ODA_DRAWENTIRE then we should be drawing only the focus rect,
like the other button types do.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list