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

Function mswin_init_map_window

outdated/sys/wince/mhmap.c:48–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46static COLORREF nhcolor_to_RGB(int c);
47
48HWND
49mswin_init_map_window()
50{
51 static int run_once = 0;
52 HWND ret;
53 DWORD styles;
54
55 if (!run_once) {
56 register_map_window_class();
57 run_once = 1;
58 }
59
60 styles = WS_CHILD | WS_CLIPSIBLINGS;
61 if (!GetNHApp()->bHideScrollBars)
62 styles |= WS_HSCROLL | WS_VSCROLL;
63 ret = CreateWindow(
64 szNHMapWindowClass, /* registered class name */
65 NULL, /* window name */
66 styles, /* window style */
67 0, /* horizontal position of window - set it later */
68 0, /* vertical position of window - set it later */
69 0, /* window width - set it later */
70 0, /* window height - set it later*/
71 GetNHApp()->hMainWnd, /* handle to parent or owner window */
72 NULL, /* menu handle or child identifier */
73 GetNHApp()->hApp, /* handle to application instance */
74 NULL); /* window-creation data */
75 if (!ret) {
76 panic("Cannot create map window");
77 }
78 return ret;
79}
80
81void
82mswin_map_stretch(HWND hWnd, LPSIZE lpsz, BOOL redraw)

Callers 1

mswin_create_nhwindowFunction · 0.70

Calls 3

GetNHAppFunction · 0.70
panicFunction · 0.50

Tested by

no test coverage detected