bool _HYDistributionChartWindow::_ProcessMenuSelection (long msel) { switch (msel) { case HY_CHARTD_WIN32_MENU_BASE: { AddVariable (); return true; } case HY_CHARTD_WIN32_MENU_BASE+1: { RemoveVariable (); return true; } case HY_CHARTD_WIN32_MENU_BASE+2: { ShowMarginals (); return true; } default: { if (msel>=HY_CHARTD_WIN32_MENU_BASE+3) { HandleCatPostProcessor (msel-HY_CHARTD_WIN32_MENU_BASE-3); return true; } } } return _HYChartWindow::_ProcessMenuSelection(msel); }
void CConfiguration::SetFlagVariable(const CString& Name, const bool Value) { int index = VarIndex(Name); if (ValidIndex(index)) { if (!Value) { RemoveVariable(index); } } else { if (Value) { InsertFlagVariable(Name,true); } } }
void CConfiguration::SetUndefined(const CString& Name) { RemoveVariable(DefinedPrefix()+Name); }
void CConfiguration::RemoveVariable(const CString& Name) { RemoveVariable(VarIndex(Name)); }