MCPcopy Create free account
hub / github.com/SFML/SFML / createWindowWrapper

Function createWindowWrapper

test/Graphics/WindowHandleWin32.test.cpp:43–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41}
42
43sf::WindowHandle createWindowWrapper(LPWSTR className, HINSTANCE hInstance, DWORD dwExStyle, bool withMenu)
44{
45 HMENU hMenu = nullptr;
46 if (withMenu)
47 {
48 hMenu = CreateMenu();
49 AppendMenuW(hMenu, MF_STRING, 1, L"Test");
50 }
51 return CreateWindowExW(dwExStyle,
52 className,
53 L"WindowHandle Tests",
54 WS_OVERLAPPEDWINDOW,
55 CW_USEDEFAULT,
56 CW_USEDEFAULT,
57 640,
58 480,
59 nullptr,
60 hMenu,
61 hInstance,
62 nullptr);
63}
64
65} // namespace
66

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected