1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Window positioning fix.

This commit is contained in:
jules 2013-04-25 11:33:37 +01:00
parent 00641f06ed
commit ce3ecc752b

View file

@ -625,13 +625,10 @@ public:
}
}
RECT r;
GetWindowRect (hwnd, &r);
const Rectangle<int> oldBounds (rectangleFromRECT (r));
const bool hasMoved = (oldBounds.getPosition() != newBounds.getPosition());
const bool hasResized = (oldBounds.getWidth() != newBounds.getWidth()
|| oldBounds.getHeight() != newBounds.getHeight());
const Rectangle<int> oldBounds (getBounds());
const bool hasMoved = (oldBounds.getPosition() != bounds.getPosition());
const bool hasResized = (oldBounds.getWidth() != bounds.getWidth()
|| oldBounds.getHeight() != bounds.getHeight());
DWORD flags = SWP_NOACTIVATE | SWP_NOZORDER | SWP_NOOWNERZORDER;
if (! hasMoved) flags |= SWP_NOMOVE;