| 57 | } |
| 58 | |
| 59 | void |
| 60 | register_status_window_class() |
| 61 | { |
| 62 | WNDCLASS wcex; |
| 63 | |
| 64 | ZeroMemory(&wcex, sizeof(wcex)); |
| 65 | wcex.style = CS_NOCLOSE; |
| 66 | wcex.lpfnWndProc = (WNDPROC) StatusWndProc; |
| 67 | wcex.cbClsExtra = 0; |
| 68 | wcex.cbWndExtra = 0; |
| 69 | wcex.hInstance = GetNHApp()->hApp; |
| 70 | wcex.hIcon = NULL; |
| 71 | wcex.hCursor = LoadCursor(NULL, IDC_ARROW); |
| 72 | wcex.hbrBackground = mswin_get_brush(NHW_STATUS, MSWIN_COLOR_BG); |
| 73 | wcex.lpszMenuName = NULL; |
| 74 | wcex.lpszClassName = szStatusWindowClass; |
| 75 | |
| 76 | RegisterClass(&wcex); |
| 77 | } |
| 78 | |
| 79 | LRESULT CALLBACK |
| 80 | StatusWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) |
no test coverage detected