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

Function mswin_init_command_window

outdated/sys/wince/mhcmd.c:477–506  ·  view source on GitHub ↗

-------------------------------------------------------------------------*/

Source from the content-addressed store, hash-verified

475
476/*-------------------------------------------------------------------------*/
477HWND
478mswin_init_command_window()
479{
480 static int run_once = 0;
481 HWND ret;
482
483 /* register window class */
484 if (!run_once) {
485 register_command_window_class();
486 run_once = 1;
487 }
488
489 /* create window */
490 ret = CreateWindow(
491 szNHCmdWindowClass, /* registered class name */
492 NULL, /* window name */
493 WS_CHILD | WS_CLIPSIBLINGS, /* window style */
494 0, /* horizontal position of window - set it later */
495 0, /* vertical position of window - set it later */
496 0, /* window width - set it later */
497 0, /* window height - set it later*/
498 GetNHApp()->hMainWnd, /* handle to parent or owner window */
499 NULL, /* menu handle or child identifier */
500 GetNHApp()->hApp, /* handle to application instance */
501 NULL); /* window-creation data */
502 if (!ret) {
503 panic("Cannot create command window");
504 }
505 return ret;
506}
507/*-------------------------------------------------------------------------*/
508/* calculate mimimum window size */
509void

Callers 1

onCreateFunction · 0.85

Calls 3

GetNHAppFunction · 0.70
panicFunction · 0.50

Tested by

no test coverage detected