-- 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
| 791 | --more--, if necessary, in the tty window-port. |
| 792 | */ |
| 793 | void |
| 794 | mswin_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 | |
| 821 | HWND |
| 822 | mswin_hwnd_from_winid(winid wid) |
no test coverage detected