MCPcopy Index your code
hub / github.com/NetHack/NetHack / NHMessageBox

Function NHMessageBox

win/win32/mswproc.c:2842–2852  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2840}
2841
2842int
2843NHMessageBox(HWND hWnd, LPCTSTR text, UINT type)
2844{
2845 TCHAR title[MAX_LOADSTRING];
2846 if (program_state.exiting && !strcmp(text, "\n"))
2847 text = "Press Enter to exit";
2848
2849 LoadString(GetNHApp()->hApp, IDS_APP_TITLE_SHORT, title, MAX_LOADSTRING);
2850
2851 return MessageBox(hWnd, text, title, type);
2852}
2853
2854static mswin_status_lines _status_lines;
2855static mswin_status_string _status_strings[MAXBLSTATS];

Callers 6

MainWndProcFunction · 0.85
onWMCommandFunction · 0.85
mswin_display_fileFunction · 0.85
mswin_raw_print_flushFunction · 0.85
mswin_yn_functionFunction · 0.85

Calls 1

GetNHAppFunction · 0.70

Tested by

no test coverage detected