-------------------------------------------------------------------------*/
| 475 | |
| 476 | /*-------------------------------------------------------------------------*/ |
| 477 | HWND |
| 478 | mswin_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 */ |
| 509 | void |
no test coverage detected