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

Function onMSNHCommand

outdated/sys/wince/mhmain.c:517–533  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

515}
516
517void
518onMSNHCommand(HWND hWnd, WPARAM wParam, LPARAM lParam)
519{
520 switch (wParam) {
521 /* new window was just added */
522 case MSNH_MSG_ADDWND: {
523 PMSNHMsgAddWnd msg_param = (PMSNHMsgAddWnd) lParam;
524 HWND child = GetNHApp()->windowlist[msg_param->wid].win;
525
526 if (GetNHApp()->windowlist[msg_param->wid].type == NHW_MAP)
527 mswin_select_map_mode(iflags.wc_map_mode);
528
529 if (child)
530 mswin_layout_main_window(child);
531 } break;
532 }
533}
534
535/* adjust windows to fit main window layout
536 ---------------------------

Callers 1

MainWndProcFunction · 0.70

Calls 3

GetNHAppFunction · 0.70
mswin_select_map_modeFunction · 0.70
mswin_layout_main_windowFunction · 0.70

Tested by

no test coverage detected