| 84 | */ |
| 85 | |
| 86 | void CPropertySheetHelper::FillComboBox(HWND window, int controlid, LPCTSTR choices, int currentchoice) |
| 87 | { |
| 88 | _ASSERT(choices); |
| 89 | HWND combowindow = GetDlgItem(window, controlid); |
| 90 | SendMessage(combowindow, CB_RESETCONTENT, 0, 0); |
| 91 | while (choices && *choices) |
| 92 | { |
| 93 | SendMessage(combowindow, CB_ADDSTRING, 0, (LPARAM)(LPCTSTR)choices); |
| 94 | choices += strlen(choices)+1; |
| 95 | } |
| 96 | |
| 97 | if (SendMessage(combowindow, CB_SETCURSEL, currentchoice, 0) == CB_ERR && currentchoice != -1) |
| 98 | { |
| 99 | _ASSERT(0); |
| 100 | SendMessage(combowindow, CB_SETCURSEL, 0, 0); // GH#434: Failed to set currentchoice, so select item-0 |
| 101 | } |
| 102 | } |
| 103 | |
| 104 | void CPropertySheetHelper::SaveComputerType(eApple2Type NewApple2Type) |
| 105 | { |
no outgoing calls
no test coverage detected