// Enable a specific button bool wxRadioBox::Enable(unsigned int item, bool enable) { wxCHECK_MSG( IsValid(item), false, wxT("invalid item in wxRadioBox::Enable()") ); BOOL ret = MSWEnableHWND((*m_radioButtons)[item], enable); return (ret == 0) != enable; }
bool wxSpinCtrl::Enable(bool enable) { if ( !wxControl::Enable(enable) ) { return false; } MSWEnableHWND(GetBuddyHwnd(), enable); return true; }