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
| 1131 | create_nhwindow() time. |
| 1132 | */ |
| 1133 | int |
| 1134 | mswin_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. |
nothing calls this directly
no test coverage detected