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

Function mswin_display_nhwindow

outdated/sys/wince/mswproc.c:793–819  ·  view source on GitHub ↗

-- Display the window on the screen. If there is data pending for output in that window, it should be sent. If blocking is TRUE, display_nhwindow() will not return until the data has been displayed on the screen, and acknowledged by the user where appropriate. -- All calls are blocking in the tty window-po

Source from the content-addressed store, hash-verified

791 --more--, if necessary, in the tty window-port.
792*/
793void
794mswin_display_nhwindow(winid wid, BOOLEAN_P block)
795{
796 logDebug("mswin_display_nhwindow(%d, %d)\n", wid, block);
797 if (GetNHApp()->windowlist[wid].win != NULL) {
798 if (GetNHApp()->windowlist[wid].type == NHW_MENU) {
799 MENU_ITEM_P *p;
800 mswin_menu_window_select_menu(GetNHApp()->windowlist[wid].win,
801 PICK_NONE, &p);
802 }
803 if (GetNHApp()->windowlist[wid].type == NHW_TEXT) {
804 mswin_display_text_window(GetNHApp()->windowlist[wid].win);
805 }
806 if (GetNHApp()->windowlist[wid].type == NHW_RIP) {
807 mswin_display_RIP_window(GetNHApp()->windowlist[wid].win);
808 } else {
809 if (!block) {
810 UpdateWindow(GetNHApp()->windowlist[wid].win);
811 } else {
812 if (GetNHApp()->windowlist[wid].type == NHW_MAP) {
813 (void) mswin_nhgetch();
814 }
815 }
816 }
817 SetFocus(GetNHApp()->hMainWnd);
818 }
819}
820
821HWND
822mswin_hwnd_from_winid(winid wid)

Callers 1

mswin_display_fileFunction · 0.70

Calls 6

logDebugFunction · 0.70
GetNHAppFunction · 0.70
mswin_display_RIP_windowFunction · 0.70
mswin_nhgetchFunction · 0.70

Tested by

no test coverage detected