| 1438 | } |
| 1439 | |
| 1440 | static void UpdateComboFam(HWND hwndDlg) |
| 1441 | { |
| 1442 | // Update the user input type of the famicom |
| 1443 | InputType[FAMICOM_POSITION] = |
| 1444 | SendDlgItemMessage( |
| 1445 | hwndDlg, |
| 1446 | COMBO_FAM, |
| 1447 | CB_GETCURSEL, |
| 1448 | 0, |
| 1449 | (LPARAM)(LPSTR)0 |
| 1450 | ); |
| 1451 | |
| 1452 | // Enable or disable the configuration button |
| 1453 | EnableWindow( |
| 1454 | GetDlgItem(hwndDlg, BTN_FAM), |
| 1455 | configurable_fam[InputType[FAMICOM_POSITION]] |
| 1456 | ); |
| 1457 | |
| 1458 | // Update the text field |
| 1459 | SetDlgItemText( |
| 1460 | hwndDlg, |
| 1461 | TXT_FAM, |
| 1462 | (LPTSTR)ESIFC_Name((ESIFC)InputType[FAMICOM_POSITION]) |
| 1463 | ); |
| 1464 | } |
| 1465 | |
| 1466 | |
| 1467 | static void UpdateFourscoreState(HWND dlg) |
no test coverage detected