added correct (structure instead of content) bounds for window creation also

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27202 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2004-05-11 13:17:56 +00:00
parent e1f91359ab
commit f83b67612b

View File

@@ -979,6 +979,11 @@ void wxTopLevelWindowMac::MacCreateRealWindow( const wxString& title,
} }
wxCHECK_RET( err == noErr, wxT("Mac OS error when trying to create new window") ); wxCHECK_RET( err == noErr, wxT("Mac OS error when trying to create new window") );
// the create commands are only for content rect, so we have to set the size again as
// structure bounds
SetWindowBounds( (WindowRef) m_macWindow , kWindowStructureRgn , &theBoundsRect ) ;
wxAssociateWinWithMacWindow( (WindowRef) m_macWindow , this ) ; wxAssociateWinWithMacWindow( (WindowRef) m_macWindow , this ) ;
UMASetWTitle( (WindowRef) m_macWindow , title , m_font.GetEncoding() ) ; UMASetWTitle( (WindowRef) m_macWindow , title , m_font.GetEncoding() ) ;
if ( m_macUsesCompositing ) if ( m_macUsesCompositing )