MCPcopy Create free account
hub / github.com/AlSch092/UltimateAntiCheat / PositionWindow

Method PositionWindow

SplashScreen.cpp:25–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23}
24
25void Splash::PositionWindow(HWND hwnd)
26{
27 RECT rc;
28 GetWindowRect(hwnd, &rc);
29
30 int screenWidth = GetSystemMetrics(SM_CXSCREEN);
31 int screenHeight = GetSystemMetrics(SM_CYSCREEN);
32
33 int windowWidth = rc.right - rc.left;
34 int windowHeight = rc.bottom - rc.top;
35
36 int x = screenWidth - windowWidth;
37 int y = screenHeight - windowHeight;
38
39 SetWindowPos(hwnd, NULL, x, y, 0, 0, SWP_NOZORDER | SWP_NOSIZE | SWP_NOACTIVATE);
40}
41
42HWND Splash::CreateSplashWindow(HINSTANCE hInstance)
43{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected