]> git.saurik.com Git - wxWidgets.git/commitdiff
Respect the wxNO_BORDER flag for tool windows without a titlebar.
authorKevin Ollivier <kevino@theolliviers.com>
Mon, 25 Aug 2008 04:28:40 +0000 (04:28 +0000)
committerKevin Ollivier <kevino@theolliviers.com>
Mon, 25 Aug 2008 04:28:40 +0000 (04:28 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55250 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/osx/carbon/nonownedwnd.cpp

index ed2d34a7287861070a801481d49180583fb6f550..98644d6f0b385fbff71b528636c34fc842020985 100644 (file)
@@ -1581,7 +1581,14 @@ void wxNonOwnedWindowCarbonImpl::Create(
         }
         else
         {
-            wclass = kPlainWindowClass ;
+            if ( HasFlag( wxNO_BORDER ) )
+            {
+                wclass = kSimpleWindowClass ;
+            }
+            else
+            {
+                wclass = kPlainWindowClass ;
+            }
             activationScopeSet = true;
             activationScope = kWindowActivationScopeNone;
         }