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

Function mswin_get_window_placement

win/win32/mswproc.c:2772–2804  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2770}
2771
2772void
2773mswin_get_window_placement(int type, LPRECT rt)
2774{
2775 switch (type) {
2776 case NHW_MAP:
2777 *rt = GetNHApp()->rtMapWindow;
2778 break;
2779
2780 case NHW_MESSAGE:
2781 *rt = GetNHApp()->rtMsgWindow;
2782 break;
2783
2784 case NHW_STATUS:
2785 *rt = GetNHApp()->rtStatusWindow;
2786 break;
2787
2788 case NHW_MENU:
2789 *rt = GetNHApp()->rtMenuWindow;
2790 break;
2791
2792 case NHW_TEXT:
2793 *rt = GetNHApp()->rtTextWindow;
2794 break;
2795
2796 case NHW_INVEN:
2797 *rt = GetNHApp()->rtInvenWindow;
2798 break;
2799
2800 default:
2801 SetRect(rt, 0, 0, 0, 0);
2802 break;
2803 }
2804}
2805
2806void
2807mswin_update_window_placement(int type, LPRECT rt)

Callers 6

mswin_init_map_windowFunction · 0.85
mswin_init_text_windowFunction · 0.85
mswin_layout_main_windowFunction · 0.85
mswin_init_status_windowFunction · 0.85
mswin_init_menu_windowFunction · 0.85

Calls 1

GetNHAppFunction · 0.70

Tested by

no test coverage detected