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

Function register_map_window_class

outdated/sys/wince/mhmap.c:325–347  ·  view source on GitHub ↗

register window class for map window */

Source from the content-addressed store, hash-verified

323
324/* register window class for map window */
325void
326register_map_window_class()
327{
328 WNDCLASS wcex;
329 ZeroMemory(&wcex, sizeof(wcex));
330
331 /* window class */
332 wcex.style = CS_NOCLOSE | CS_DBLCLKS;
333 wcex.lpfnWndProc = (WNDPROC) MapWndProc;
334 wcex.cbClsExtra = 0;
335 wcex.cbWndExtra = 0;
336 wcex.hInstance = GetNHApp()->hApp;
337 wcex.hIcon = NULL;
338 wcex.hCursor = LoadCursor(NULL, IDC_ARROW);
339 wcex.hbrBackground =
340 CreateSolidBrush(RGB(0, 0, 0)); /* set backgroup here */
341 wcex.lpszMenuName = NULL;
342 wcex.lpszClassName = szNHMapWindowClass;
343
344 if (!RegisterClass(&wcex)) {
345 panic("cannot register Map window class");
346 }
347}
348
349/* map window procedure */
350LRESULT CALLBACK

Callers 1

mswin_init_map_windowFunction · 0.70

Calls 3

GetNHAppFunction · 0.70
RGBClass · 0.50
panicFunction · 0.50

Tested by

no test coverage detected