]> git.saurik.com Git - wxWidgets.git/commitdiff
avoiding illegal window styles
authorStefan Csomor <csomor@advancedconcepts.ch>
Tue, 29 Mar 2005 11:45:05 +0000 (11:45 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Tue, 29 Mar 2005 11:45:05 +0000 (11:45 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33145 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/toplevel.cpp

index 618ef034b7b11fb8fb9872289d4b35cc6f8e62c8..82605e75aee0e156955643ad43b07991e558c14d 100644 (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 ;
     }