MCPcopy Create free account
hub / github.com/deskflow/deskflow / createWindow

Method createWindow

src/lib/platform/MSWindowsScreen.cpp:797–808  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

795}
796
797HWND 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
810void MSWindowsScreen::destroyWindow(HWND hwnd) const
811{

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected