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:
@@ -1112,19 +1112,19 @@ void wxTopLevelWindowMac::MacCreateRealWindow( const wxString& title,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( HasFlag( wxMINIMIZE_BOX ) )
|
if ( HasFlag( wxMINIMIZE_BOX ) && wclass != kPlainWindowClass )
|
||||||
{
|
{
|
||||||
attr |= kWindowCollapseBoxAttribute ;
|
attr |= kWindowCollapseBoxAttribute ;
|
||||||
}
|
}
|
||||||
if ( HasFlag( wxMAXIMIZE_BOX ) )
|
if ( HasFlag( wxMAXIMIZE_BOX ) && wclass != kPlainWindowClass )
|
||||||
{
|
{
|
||||||
attr |= kWindowFullZoomAttribute ;
|
attr |= kWindowFullZoomAttribute ;
|
||||||
}
|
}
|
||||||
if ( HasFlag( wxRESIZE_BORDER ) )
|
if ( HasFlag( wxRESIZE_BORDER ) && wclass != kPlainWindowClass )
|
||||||
{
|
{
|
||||||
attr |= kWindowResizableAttribute ;
|
attr |= kWindowResizableAttribute ;
|
||||||
}
|
}
|
||||||
if ( HasFlag( wxCLOSE_BOX) )
|
if ( HasFlag( wxCLOSE_BOX) && wclass != kPlainWindowClass )
|
||||||
{
|
{
|
||||||
attr |= kWindowCloseBoxAttribute ;
|
attr |= kWindowCloseBoxAttribute ;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user