void CPDetectorDialog::OnStepChanging(wxChoicebookEvent &e) { if(!twoStepAllowed && e.GetOldSelection()==0) { wxBell(); e.Veto(); }; };