Exemplo n.º 1
0
void AddVolumeItems(NWindows::NControl::CComboBox &volumeCombo)
{
  volumeCombo.AddString(TEXT("1457664 - 3.5\" floppy"));
  volumeCombo.AddString(TEXT("650M - CD"));
  volumeCombo.AddString(TEXT("700M - CD"));
  volumeCombo.AddString(TEXT("4480M - DVD"));
}
Exemplo n.º 2
0
static void AddComboItems(NWindows::NControl::CComboBox &combo, const CIDLangPair *items, int numItems, const int *values, int curVal)
{
  int curSel = 0;
  for (int i = 0; i < numItems; i++)
  {
    UString s = LangString(items[i].ControlID, items[i].LangID);
    s.Replace(L"&", L"");
    int index = (int)combo.AddString(s);
    combo.SetItemData(index, i);
    if (values[i] == curVal)
      curSel = i;
  }
  combo.SetCurSel(curSel);
}
Exemplo n.º 3
0
void AddVolumeItems(NWindows::NControl::CComboBox &combo)
{
  combo.AddString(TEXT("10M"));
  combo.AddString(TEXT("650M - CD"));
  combo.AddString(TEXT("700M - CD"));
  combo.AddString(TEXT("4092M - FAT"));
  combo.AddString(TEXT("4480M - DVD"));     //  4489 MiB limit
  combo.AddString(TEXT("8128M - DVD DL"));  //  8147 MiB limit
  combo.AddString(TEXT("23040M - BD"));     // 23866 MiB limit
  combo.AddString(TEXT("1457664 - 3.5\" floppy"));
}
Exemplo n.º 4
0
void AddVolumeItems(NWindows::NControl::CComboBox &combo)
{
  for (unsigned i = 0; i < ARRAY_SIZE(k_Sizes); i++)
    combo.AddString(CSysString(k_Sizes[i]));
}