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

Method GetClientArea

Shadows/SampleFramework11/Window.cpp:207–215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

205}
206
207void Window::GetClientArea(INT& clientX, INT& clientY) const
208{
209 RECT clientRect;
210 if (!::GetClientRect(hwnd, &clientRect))
211 throw Win32Exception(::GetLastError());
212
213 clientX = clientRect.right;
214 clientY = clientRect.bottom;
215}
216
217void Window::SetWindowTitle(LPCWSTR title)
218{

Callers 1

OnWindowResizedMethod · 0.80

Calls 1

Win32ExceptionClass · 0.85

Tested by

no test coverage detected