MCPcopy Create free account
hub / github.com/TheRealMJP/Shadows / GetWindowPos

Method GetWindowPos

Shadows/SampleFramework11/Window.cpp:178–185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

176}
177
178void Window::GetWindowPos(INT& posX, INT& posY) const
179{
180 RECT windowRect;
181 if (!::GetWindowRect(hwnd, &windowRect))
182 throw Win32Exception(::GetLastError());
183 posX = windowRect.left;
184 posY = windowRect.top;
185}
186
187void Window::ShowWindow(bool show)
188{

Callers

nothing calls this directly

Calls 1

Win32ExceptionClass · 0.85

Tested by

no test coverage detected