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:
Zhiyi Zhang 2021-11-11 15:03:45 +08:00 committed by Alexandre Julliard
parent 54f825d237
commit a7f6d78406
1 changed files with 2 additions and 2 deletions

View File

@ -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: