void CMultiplay::FixControls() { name_ctrl_.GetLBText(name_ctrl_.GetCurSel(), macro_name_); if (macro_name_ == DEFAULT_MACRO_NAME) { plays_ = 1; } else { std::vector<key_macro> tmp; CString comment; int halt_lev; long plays; int version; // Version of HexEdit in which the macro was recorded ASSERT(theApp.mac_dir_.Right(1) == "\\"); if (theApp.macro_load(theApp.mac_dir_ + macro_name_ + ".hem", &tmp, comment, halt_lev, plays, version)) plays_ = plays; else { ASSERT(0); plays_ = 1; } } UpdateData(FALSE); // Put number of plays into control }