end_menu(window, prompt) -- Stop adding entries to the menu and flushes the window to the screen (brings to front?). Prompt is a prompt to give the user. If prompt is NULL, no prompt will be printed. ** This probably shouldn't flush the window any more (if ** it ever did). That should be sel
| 1091 | ** it ever did). That should be select_menu's job. -dean |
| 1092 | */ |
| 1093 | void |
| 1094 | mswin_end_menu(winid wid, const char *prompt) |
| 1095 | { |
| 1096 | logDebug("mswin_end_menu(%d, %s)\n", wid, prompt); |
| 1097 | if ((wid >= 0) && (wid < MAXWINDOWS) |
| 1098 | && (GetNHApp()->windowlist[wid].win != NULL)) { |
| 1099 | MSNHMsgEndMenu data; |
| 1100 | ZeroMemory(&data, sizeof(data)); |
| 1101 | data.text = prompt; |
| 1102 | |
| 1103 | SendMessage(GetNHApp()->windowlist[wid].win, WM_MSNH_COMMAND, |
| 1104 | (WPARAM) MSNH_MSG_ENDMENU, (LPARAM) &data); |
| 1105 | } |
| 1106 | } |
| 1107 | |
| 1108 | /* |
| 1109 | int select_menu(windid window, int how, menu_item **selected) |
no test coverage detected