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

Function mswin_putstr_ex

outdated/sys/wince/mswproc.c:938–959  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

936}
937
938void
939mswin_putstr_ex(winid wid, int attr, const char *text, boolean app)
940{
941 if ((wid >= 0) && (wid < MAXWINDOWS)) {
942 if (GetNHApp()->windowlist[wid].win == NULL
943 && GetNHApp()->windowlist[wid].type == NHW_MENU) {
944 GetNHApp()->windowlist[wid].win =
945 mswin_init_menu_window(MENU_TYPE_TEXT);
946 GetNHApp()->windowlist[wid].dead = 0;
947 }
948
949 if (GetNHApp()->windowlist[wid].win != NULL) {
950 MSNHMsgPutstr data;
951 ZeroMemory(&data, sizeof(data));
952 data.attr = attr;
953 data.text = text;
954 data.append = app;
955 SendMessage(GetNHApp()->windowlist[wid].win, WM_MSNH_COMMAND,
956 (WPARAM) MSNH_MSG_PUTSTR, (LPARAM) &data);
957 }
958 }
959}
960
961/* Display the file named str. Complain about missing files
962 iff complain is TRUE.

Callers 2

mswin_putstrFunction · 0.70
mswin_yn_functionFunction · 0.70

Calls 2

GetNHAppFunction · 0.70
mswin_init_menu_windowFunction · 0.70

Tested by

no test coverage detected