X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e0a050e347b1ece07ad5f165ba1b1d16edbeae77..0187f0bcf4795c198d1f5974ce9b3ab58d643206:/src/msw/combobox.cpp?ds=sidebyside diff --git a/src/msw/combobox.cpp b/src/msw/combobox.cpp index 9a3f40c653..8ced094638 100644 --- a/src/msw/combobox.cpp +++ b/src/msw/combobox.cpp @@ -374,7 +374,7 @@ bool wxComboBox::MSWShouldPreProcessMessage(WXMSG *pMsg) if (wxIsCtrlDown()) { WPARAM vkey = pMsg->wParam; - + switch (vkey) { case 'C': @@ -387,7 +387,7 @@ bool wxComboBox::MSWShouldPreProcessMessage(WXMSG *pMsg) return false; } } - + return wxChoice::MSWShouldPreProcessMessage(pMsg); } @@ -799,12 +799,12 @@ void wxComboBox::OnUpdateRedo(wxUpdateUIEvent& event) void wxComboBox::OnUpdateDelete(wxUpdateUIEvent& event) { - event.Enable(HasSelection() && IsEditable()); + event.Enable(IsEditable() && HasSelection()); } void wxComboBox::OnUpdateSelectAll(wxUpdateUIEvent& event) { - event.Enable(GetLastPosition() > 0); + event.Enable(IsEditable() && GetLastPosition() > 0); } #endif // wxUSE_COMBOBOX