Browse Source

Window positioning fix.

tags/2021-05-28
jules 12 years ago
parent
commit
ce3ecc752b
1 changed files with 4 additions and 7 deletions
  1. +4
    -7
      modules/juce_gui_basics/native/juce_win32_Windowing.cpp

+ 4
- 7
modules/juce_gui_basics/native/juce_win32_Windowing.cpp 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;


Loading…
Cancel
Save