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

comctl32/button: Use correct state for BS_3STATE and BS_AUTO3STATE buttons.

BS_3STATE and BS_AUTO3STATE are check boxes. Fix BS_3STATE and BS_AUTO3STATE buttons drawing indeterminate state as unchecked. Signed-off-by: 's avatarZhiyi Zhang <zzhang@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 54f825d2
......@@ -427,10 +427,10 @@ static int get_draw_state(const BUTTON_INFO *infoPtr)
return pb_states[state];
case BS_CHECKBOX:
case BS_AUTOCHECKBOX:
return cb_states[check_state][state];
case BS_RADIOBUTTON:
case BS_3STATE:
case BS_AUTO3STATE:
return cb_states[check_state][state];
case BS_RADIOBUTTON:
case BS_AUTORADIOBUTTON:
return rb_states[check_state][state];
case BS_GROUPBOX:
......
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