| 795 | } |
| 796 | |
| 797 | HWND MSWindowsScreen::createWindow(ATOM windowClass, const wchar_t *name) const |
| 798 | { |
| 799 | HWND window = CreateWindowEx( |
| 800 | WS_EX_TOPMOST | WS_EX_TRANSPARENT | WS_EX_TOOLWINDOW, MAKEINTATOM(windowClass), name, WS_POPUP, 0, 0, 1, 1, |
| 801 | nullptr, nullptr, s_windowInstance, nullptr |
| 802 | ); |
| 803 | if (window == nullptr) { |
| 804 | LOG_ERR("failed to create window: %d", GetLastError()); |
| 805 | throw ScreenOpenFailureException(); |
| 806 | } |
| 807 | return window; |
| 808 | } |
| 809 | |
| 810 | void MSWindowsScreen::destroyWindow(HWND hwnd) const |
| 811 | { |
nothing calls this directly
no test coverage detected