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:
parent
00641f06ed
commit
ce3ecc752b
1 changed files with 4 additions and 7 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue