uxtheme: cause themed buttons to render correctly when pressed and released

Dmitry Timoshkov dmitry at baikal.ru
Sun Mar 4 08:37:41 CST 2012


Robert Grocott <rgrocottbugzilla at gmail.com> wrote:

> --- a/dlls/user32/button.c
> +++ b/dlls/user32/button.c
> @@ -190,12 +190,7 @@ static inline UINT get_button_type( LONG window_style )
>  /* paint a button of any type */
>  static inline void paint_button( HWND hwnd, LONG style, UINT action )
>  {
> -    if (btnPaintFunc[style] && IsWindowVisible(hwnd))
> -    {
> -        HDC hdc = GetDC( hwnd );
> -        btnPaintFunc[style]( hwnd, hdc, action );
> -        ReleaseDC( hwnd, hdc );
> -    }
> +    InvalidateRect( hwnd, NULL, FALSE);
>  }

This is wrong, you will discover that after running 'make test'.

-- 
Dmitry.



More information about the wine-devel mailing list