Commit ed06aa2f authored by Zhiyi Zhang's avatar Zhiyi Zhang Committed by Alexandre Julliard

comctl32/button: Use correct state for default buttons.

parent a7f6d784
......@@ -410,7 +410,8 @@ static int get_draw_state(const BUTTON_INFO *infoPtr)
state = STATE_PRESSED;
else if (infoPtr->state & BST_HOT)
state = STATE_HOT;
else if (infoPtr->state & BST_FOCUS)
else if (infoPtr->state & BST_FOCUS || type == BS_DEFPUSHBUTTON || type == BS_DEFSPLITBUTTON
|| (type == BS_DEFCOMMANDLINK && !(style & BS_PUSHLIKE)))
state = STATE_DEFAULTED;
else
state = STATE_NORMAL;
......
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