Commit 598d3699 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

comctl32/button: Use push button paint handler for split and command link buttons.

parent 5d10abde
...@@ -120,7 +120,11 @@ static const WORD maxCheckState[MAX_BTN_TYPE] = ...@@ -120,7 +120,11 @@ static const WORD maxCheckState[MAX_BTN_TYPE] =
BST_UNCHECKED, /* BS_USERBUTTON */ BST_UNCHECKED, /* BS_USERBUTTON */
BST_CHECKED, /* BS_AUTORADIOBUTTON */ BST_CHECKED, /* BS_AUTORADIOBUTTON */
BST_UNCHECKED, /* BS_PUSHBOX */ BST_UNCHECKED, /* BS_PUSHBOX */
BST_UNCHECKED /* BS_OWNERDRAW */ BST_UNCHECKED, /* BS_OWNERDRAW */
BST_UNCHECKED, /* BS_SPLITBUTTON */
BST_UNCHECKED, /* BS_DEFSPLITBUTTON */
BST_UNCHECKED, /* BS_COMMANDLINK */
BST_UNCHECKED /* BS_DEFCOMMANDLINK */
}; };
typedef void (*pfPaint)( HWND hwnd, HDC hdc, UINT action ); typedef void (*pfPaint)( HWND hwnd, HDC hdc, UINT action );
...@@ -138,7 +142,11 @@ static const pfPaint btnPaintFunc[MAX_BTN_TYPE] = ...@@ -138,7 +142,11 @@ static const pfPaint btnPaintFunc[MAX_BTN_TYPE] =
UB_Paint, /* BS_USERBUTTON */ UB_Paint, /* BS_USERBUTTON */
CB_Paint, /* BS_AUTORADIOBUTTON */ CB_Paint, /* BS_AUTORADIOBUTTON */
NULL, /* BS_PUSHBOX */ NULL, /* BS_PUSHBOX */
OB_Paint /* BS_OWNERDRAW */ OB_Paint, /* BS_OWNERDRAW */
PB_Paint, /* BS_SPLITBUTTON */
PB_Paint, /* BS_DEFSPLITBUTTON */
PB_Paint, /* BS_COMMANDLINK */
PB_Paint /* BS_DEFCOMMANDLINK */
}; };
/********************************************************************* /*********************************************************************
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment