mirror of
https://github.com/electronicarts/CNC_TS_and_RA2_Mission_Editor.git
synced 2025-07-17 19:56:38 -04:00
simplified some of combo box string insert .
This commit is contained in:
parent
98cf96b927
commit
a58d063b22
3 changed files with 25 additions and 27 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue