| 70 | } |
| 71 | |
| 72 | void |
| 73 | register_main_window_class() |
| 74 | { |
| 75 | WNDCLASS wcex; |
| 76 | |
| 77 | ZeroMemory(&wcex, sizeof(wcex)); |
| 78 | wcex.style = CS_HREDRAW | CS_VREDRAW; |
| 79 | wcex.lpfnWndProc = (WNDPROC) MainWndProc; |
| 80 | wcex.cbClsExtra = 0; |
| 81 | wcex.cbWndExtra = 0; |
| 82 | wcex.hInstance = GetNHApp()->hApp; |
| 83 | wcex.hIcon = LoadIcon(GetNHApp()->hApp, (LPCTSTR) IDI_WINHACK); |
| 84 | wcex.hCursor = LoadCursor(NULL, IDC_ARROW); |
| 85 | wcex.hbrBackground = (HBRUSH)(COLOR_WINDOW + 1); |
| 86 | wcex.lpszMenuName = NULL; |
| 87 | wcex.lpszClassName = szMainWindowClass; |
| 88 | |
| 89 | RegisterClass(&wcex); |
| 90 | } |
| 91 | |
| 92 | /* |
| 93 | * Keypad keys are translated to the normal values below. |
no test coverage detected