MCPcopy Create free account
hub / github.com/TASEmulators/fceux / InitFilterComboBox

Function InitFilterComboBox

src/drivers/win/mapinput.cpp:323–341  ·  view source on GitHub ↗

* Fills the filter combobox. * * @param hwndDlg Handle of the Map Input dialog. **/

Source from the content-addressed store, hash-verified

321* @param hwndDlg Handle of the Map Input dialog.
322**/
323void InitFilterComboBox(HWND hwndDlg)
324{
325 // Populate the filter combobox.
326 SendDlgItemMessage(hwndDlg, COMBO_FILTER, CB_INSERTSTRING, 0, (LPARAM)"None");
327
328 unsigned i;
329
330 for(i = 0; i < EMUCMDTYPE_MAX; ++i)
331 {
332 SendDlgItemMessage(hwndDlg, COMBO_FILTER, CB_INSERTSTRING, i+1, (LPARAM)FCEUI_CommandTypeNames[i]);
333 }
334
335 SendDlgItemMessage(hwndDlg, COMBO_FILTER, CB_INSERTSTRING, ++i, (LPARAM)"Assigned");
336 SendDlgItemMessage(hwndDlg, COMBO_FILTER, CB_INSERTSTRING, ++i, (LPARAM)"Unassigned");
337 SendDlgItemMessage(hwndDlg, COMBO_FILTER, CB_INSERTSTRING, ++i, (LPARAM)"Conflicts");
338
339 // Default filter is "none".
340 SendDlgItemMessage(hwndDlg, COMBO_FILTER, CB_SETCURSEL, 0, 0);
341}
342
343/**
344* Checks what ListView line was selected and shows the dialog

Callers 1

MapInputDialogProcFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected