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

Function mswin_end_menu

outdated/sys/wince/mswproc.c:1093–1106  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1091 ** it ever did). That should be select_menu's job. -dean
1092*/
1093void
1094mswin_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/*
1109int select_menu(windid window, int how, menu_item **selected)

Callers 1

ActivateCellFunction · 0.70

Calls 2

logDebugFunction · 0.70
GetNHAppFunction · 0.70

Tested by

no test coverage detected