| 515 | } |
| 516 | |
| 517 | void |
| 518 | onMSNHCommand(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 | --------------------------- |
no test coverage detected