avoiding illegal window styles

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33145 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor 2005-03-29 11:45:05 +00:00
parent b337acd7a0
commit 38e605eb82

View File

@ -1112,19 +1112,19 @@ void wxTopLevelWindowMac::MacCreateRealWindow( const wxString& title,
}
}
if ( HasFlag( wxMINIMIZE_BOX ) )
if ( HasFlag( wxMINIMIZE_BOX ) && wclass != kPlainWindowClass )
{
attr |= kWindowCollapseBoxAttribute ;
}
if ( HasFlag( wxMAXIMIZE_BOX ) )
if ( HasFlag( wxMAXIMIZE_BOX ) && wclass != kPlainWindowClass )
{
attr |= kWindowFullZoomAttribute ;
}
if ( HasFlag( wxRESIZE_BORDER ) )
if ( HasFlag( wxRESIZE_BORDER ) && wclass != kPlainWindowClass )
{
attr |= kWindowResizableAttribute ;
}
if ( HasFlag( wxCLOSE_BOX) )
if ( HasFlag( wxCLOSE_BOX) && wclass != kPlainWindowClass )
{
attr |= kWindowCloseBoxAttribute ;
}