| 23 | } |
| 24 | |
| 25 | void 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 | |
| 42 | HWND Splash::CreateSplashWindow(HINSTANCE hInstance) |
| 43 | { |
nothing calls this directly
no outgoing calls
no test coverage detected