| 98 | } |
| 99 | |
| 100 | void |
| 101 | register_main_window_class(void) |
| 102 | { |
| 103 | WNDCLASS wcex; |
| 104 | |
| 105 | ZeroMemory(&wcex, sizeof(wcex)); |
| 106 | wcex.style = CS_HREDRAW | CS_VREDRAW; |
| 107 | wcex.lpfnWndProc = (WNDPROC) MainWndProc; |
| 108 | wcex.cbClsExtra = 0; |
| 109 | wcex.cbWndExtra = 0; |
| 110 | wcex.hInstance = GetNHApp()->hApp; |
| 111 | wcex.hIcon = LoadIcon(GetNHApp()->hApp, (LPCTSTR) IDI_NETHACKW); |
| 112 | wcex.hCursor = LoadCursor(NULL, IDC_ARROW); |
| 113 | wcex.hbrBackground = CreateSolidBrush(RGB(0, 0, 0)); |
| 114 | wcex.lpszMenuName = (TCHAR *) IDC_NETHACKW; |
| 115 | wcex.lpszClassName = szMainWindowClass; |
| 116 | |
| 117 | RegisterClass(&wcex); |
| 118 | } |
| 119 | |
| 120 | /* |
| 121 | * Keypad keys are translated to the normal values below. |
no test coverage detected