| 382 | struct MessageWindow |
| 383 | { |
| 384 | MessageWindow() |
| 385 | { |
| 386 | className = "choc_" + std::to_string (rand()); |
| 387 | |
| 388 | WNDCLASSEXA wc = {}; |
| 389 | wc.cbSize = sizeof (wc); |
| 390 | wc.hInstance = GetModuleHandleA (nullptr); |
| 391 | wc.lpszClassName = className.c_str(); |
| 392 | wc.lpfnWndProc = windowProc; |
| 393 | |
| 394 | RegisterClassExA (std::addressof (wc)); |
| 395 | |
| 396 | hwnd = CreateWindowA (className.c_str(), "choc", 0, 0, 0, 0, 0, |
| 397 | nullptr, nullptr, wc.hInstance, nullptr); |
| 398 | } |
| 399 | |
| 400 | ~MessageWindow() |
| 401 | { |
nothing calls this directly
no outgoing calls
no test coverage detected