-wxCOMPILE_TIME_ASSERT(wxCHK_UNCHECKED == BST_UNCHECKED
- && wxCHK_CHECKED == BST_CHECKED
- && wxCHK_UNDETERMINED == BST_INDETERMINATE, EnumValuesIncorrect);
+void wxCheckBox::Command(wxCommandEvent& event)
+{
+ int state = event.GetInt();
+ wxCHECK_RET( (state == wxCHK_UNCHECKED) || (state == wxCHK_CHECKED)
+ || (state == wxCHK_UNDETERMINED),
+ wxT("event.GetInt() returned an invalid checkbox state") );
+
+ Set3StateValue((wxCheckBoxState) state);
+ ProcessCommand(event);
+}