simplified some of combo box string insert .

This commit is contained in:
Zero Fanker 2024-07-03 23:58:35 -04:00
parent 98cf96b927
commit a58d063b22
3 changed files with 25 additions and 27 deletions

View file

@ -1312,15 +1312,15 @@ void ComboBoxHelper::ListCountries(CComboBox& combobox, bool bShowIndex)
} else {
buffer = id;
}
combobox.SetItemData(combobox.AddString(buffer), idx);
combobox.InsertString(idx, buffer);
}
}
void ComboBoxHelper::ListBoolean(CComboBox& combobox)
{
ComboBoxHelper::Clear(combobox);
combobox.SetItemData(combobox.AddString(TranslateStringACP("0 - FALSE")), 0);
combobox.SetItemData(combobox.AddString(TranslateStringACP("1 - TRUE")), 1);
combobox.InsertString(0, "0 - FALSE");
combobox.InsertString(1, "1 - TRUE");
}
CString GetHouseSectionName(CString lpHouse)