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: Zhiyi Zhang <zzhang@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
54f825d237
commit
a7f6d78406
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue