| 148 | } |
| 149 | |
| 150 | HWND CreateMessageWindow(HINSTANCE instance_handle) |
| 151 | { |
| 152 | WNDCLASSEX wcex = { 0 }; |
| 153 | wcex.cbSize = sizeof(wcex); |
| 154 | wcex.lpfnWndProc = MessageWindowWndProc; |
| 155 | wcex.hInstance = instance_handle; |
| 156 | wcex.lpszClassName = MessageWindowClassName; |
| 157 | RegisterClassEx(&wcex); |
| 158 | return CreateWindow(MessageWindowClassName, 0, 0, 0, 0, 0, 0, HWND_MESSAGE, 0, instance_handle, 0); |
| 159 | } |
| 160 | |
| 161 | void AppQuitMessageLoop() |
| 162 | { |