comctl32/button: Fix paint handler check when theming is on.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
457617d545
commit
389c3add0a
|
@ -393,7 +393,7 @@ static LRESULT CALLBACK BUTTON_WindowProc(HWND hWnd, UINT uMsg, WPARAM wParam, L
|
||||||
theme = GetWindowTheme( hWnd );
|
theme = GetWindowTheme( hWnd );
|
||||||
hdc = wParam ? (HDC)wParam : BeginPaint( hWnd, &ps );
|
hdc = wParam ? (HDC)wParam : BeginPaint( hWnd, &ps );
|
||||||
|
|
||||||
if (theme && btnPaintFunc[btn_type])
|
if (theme && btnThemedPaintFunc[btn_type])
|
||||||
{
|
{
|
||||||
ButtonState drawState;
|
ButtonState drawState;
|
||||||
UINT dtflags;
|
UINT dtflags;
|
||||||
|
|
Loading…
Reference in New Issue