moved setting of internal vars in order to avoid problems in recursing (MoveWindow calling BoundsChanged handlers which in turn call DoMoveWindow again)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23532 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2003-09-11 20:33:02 +00:00
parent caff62f22d
commit 789a620add
2 changed files with 6 additions and 4 deletions

View File

@@ -1070,12 +1070,13 @@ void wxTopLevelWindowMac::DoMoveWindow(int x, int y, int width, int height)
{
m_x = actualX ;
m_y = actualY ;
m_width = actualWidth ;
m_height = actualHeight ;
if ( doMove )
::MoveWindow((WindowRef)m_macWindow, m_x, m_y , false); // don't make frontmost
m_width = actualWidth ;
m_height = actualHeight ;
if ( doResize )
::SizeWindow((WindowRef)m_macWindow, m_width, m_height , true);