Hook combobox selection up to its display

This commit is contained in:
selmer%netscape.com 1999-08-29 22:52:40 +00:00
parent 5d6fdd3926
commit 591aff982f
2 changed files with 4 additions and 1 deletions

View File

@ -1436,7 +1436,8 @@ void CWizardMachineApp::GenerateList(CString action, WIDGET* targetWidget, CStri
}
else if(curWidget->type == "ComboBox")
{
((CComboBox*)curWidget->control)->SetCurSel(0);
int selIndex = atoi(curWidget->value);
((CComboBox*)curWidget->control)->SetCurSel(selIndex);
}
}

View File

@ -1204,11 +1204,13 @@ void CWizardUI::UpdateGlobals()
{
/**
curWidget = CurrentNode->pageWidgets[i];
**/
int selectedIndex = ((CComboBox*)curWidget->control)->GetCurSel();
char tmpStr[MIN_SIZE];
itoa(selectedIndex, tmpStr, 10);
curWidget->value = tmpStr;
/**
int selIndex = ((CComboBox*)curWidget->control)->GetCurSel();
((CComboBox*)curWidget->control)->GetLBText(selIndex, (char *)(LPCTSTR) selectedCustomization);