| | |
| | | pCombo->ResetContent(); |
| | | for (const auto& pair : mapRecipeIds) { |
| | | int nRecipeID = pair.second; |
| | | CString strRecipeName; |
| | | strRecipeName.Format(_T("%d"), nRecipeID); |
| | | int idx = pCombo->AddString(strRecipeName); |
| | | |
| | | std::string strRecipeName = RecipeManager::getInstance().getDeviceRecipeName(pEq->getName(), nRecipeID); |
| | | if (strRecipeName.empty()) { |
| | | strRecipeName = std::to_string(nRecipeID); |
| | | } |
| | | |
| | | CString str; |
| | | str.Format(_T("%s"), strRecipeName.c_str()); |
| | | int idx = pCombo->AddString(str); |
| | | pCombo->SetItemData(idx, nRecipeID); |
| | | if (nSelectedRecipeID == nRecipeID) { |
| | | pCombo->SetCurSel(idx); |