| 115 | } |
| 116 | |
| 117 | void |
| 118 | register_message_window_class(void) |
| 119 | { |
| 120 | WNDCLASS wcex; |
| 121 | ZeroMemory(&wcex, sizeof(wcex)); |
| 122 | |
| 123 | wcex.style = CS_NOCLOSE; |
| 124 | wcex.lpfnWndProc = (WNDPROC) NHMessageWndProc; |
| 125 | wcex.cbClsExtra = 0; |
| 126 | wcex.cbWndExtra = 0; |
| 127 | wcex.hInstance = GetNHApp()->hApp; |
| 128 | wcex.hIcon = NULL; |
| 129 | wcex.hCursor = LoadCursor(NULL, IDC_ARROW); |
| 130 | wcex.hbrBackground = message_bg_brush |
| 131 | ? message_bg_brush |
| 132 | : SYSCLR_TO_BRUSH(DEFAULT_COLOR_BG_MSG); |
| 133 | wcex.lpszMenuName = NULL; |
| 134 | wcex.lpszClassName = szMessageWindowClass; |
| 135 | |
| 136 | RegisterClass(&wcex); |
| 137 | } |
| 138 | |
| 139 | LRESULT CALLBACK |
| 140 | NHMessageWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) |
no test coverage detected