Re: uxtheme: cause themed buttons to render correctly when pressed and released
4 Mar
2012
4 Mar
'12
8:37 a.m.
Robert Grocott <rgrocottbugzilla(a)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.
5032
Age (days ago)
5032
Last active (days ago)
0 comments
1 participants
participants (1)
-
Dmitry Timoshkov