Fix drawing undetermined state of owner-drawn checkbox
This commit is contained in:
@@ -247,11 +247,11 @@ int wxCheckBox::MSWGetButtonCheckedFlag() const
|
|||||||
return wxCONTROL_CHECKED;
|
return wxCONTROL_CHECKED;
|
||||||
|
|
||||||
case wxCHK_UNDETERMINED:
|
case wxCHK_UNDETERMINED:
|
||||||
return wxCONTROL_PRESSED;
|
return wxCONTROL_UNDETERMINED;
|
||||||
|
|
||||||
case wxCHK_UNCHECKED:
|
case wxCHK_UNCHECKED:
|
||||||
// no extra styles needed
|
// no extra styles needed
|
||||||
return 0;
|
return wxCONTROL_NONE;
|
||||||
}
|
}
|
||||||
|
|
||||||
wxFAIL_MSG( wxT("unexpected Get3StateValue() return value") );
|
wxFAIL_MSG( wxT("unexpected Get3StateValue() return value") );
|
||||||
|
Reference in New Issue
Block a user