We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
They shouldn’t. We want window bounds excluding the drop shadow, both for getting and setting window position and size.
https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-getwindowrect#return-value
The text was updated successfully, but these errors were encountered:
I'm working on this now as part of #286 -- it might take me some days to get the PR ready, but this local code seems to work.
RECT jwm::WindowWin32::_getWindowRectSimple() const { RECT rect; // TODO: continue using old implementation if "OS major version is < 6" (Vista) // GetWindowRect(_hWnd, &rect); DwmGetWindowAttribute(_hWnd, DWMWA_EXTENDED_FRAME_BOUNDS, &rect, sizeof(rect)); return rect; } jwm::IRect jwm::WindowWin32::getWindowRect() const { RECT rect = _getWindowRectSimple(); return IRect{rect.left, rect.top, rect.right, rect.bottom}; }
I've replaced all calls to winAPI GetWindowRect with the internal getWindowRectSimple & this is working so far.
GetWindowRect
getWindowRectSimple
Sorry, something went wrong.
No branches or pull requests
They shouldn’t. We want window bounds excluding the drop shadow, both for getting and setting window position and size.
https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-getwindowrect#return-value
The text was updated successfully, but these errors were encountered: