MCPcopy Create free account
hub / github.com/NetHack/NetHack / mswin_select_menu

Function mswin_select_menu

outdated/sys/wince/mswproc.c:1133–1146  ·  view source on GitHub ↗

int select_menu(windid window, int how, menu_item **selected) -- Return the number of items selected; 0 if none were chosen, -1 when explicitly cancelled. If items were selected, then selected is filled in with an allocated array of menu_item structures, one for each selected line. The caller must free th

Source from the content-addressed store, hash-verified

1131 create_nhwindow() time.
1132*/
1133int
1134mswin_select_menu(winid wid, int how, MENU_ITEM_P **selected)
1135{
1136 int nReturned = -1;
1137
1138 logDebug("mswin_select_menu(%d, %d)\n", wid, how);
1139
1140 if ((wid >= 0) && (wid < MAXWINDOWS)
1141 && (GetNHApp()->windowlist[wid].win != NULL)) {
1142 nReturned = mswin_menu_window_select_menu(
1143 GetNHApp()->windowlist[wid].win, how, selected);
1144 }
1145 return nReturned;
1146}
1147
1148/*
1149 -- Indicate to the window port that the inventory has been changed.

Callers

nothing calls this directly

Calls 3

logDebugFunction · 0.70
GetNHAppFunction · 0.70

Tested by

no test coverage detected