mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-03 12:35:58 +00:00
Hook combobox selection up to its display
This commit is contained in:
parent
5d6fdd3926
commit
591aff982f
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user