]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/carbon/nonownedwnd.cpp
remove declaration for ctor which is never defined
[wxWidgets.git] / src / osx / carbon / nonownedwnd.cpp
index 17319a4ea5127b2b1d5d37be24b54408f65dc47f..8a5b11cd8beadabb2ec6c0114204b265f85624f1 100644 (file)
@@ -41,6 +41,9 @@
 
 wxWindow* g_MacLastWindow = NULL ;
 
+// unified title and toolbar constant - not in Tiger headers, so we duplicate it here
+#define kWindowUnifiedTitleAndToolbarAttribute (1 << 7)
+
 // ---------------------------------------------------------------------------
 // wxWindowMac utility functions
 // ---------------------------------------------------------------------------
@@ -1578,7 +1581,14 @@ void wxNonOwnedWindowCarbonImpl::Create(
         }
         else
         {
-            wclass = kPlainWindowClass ;
+            if ( style & wxNO_BORDER )
+            {
+                wclass = kSimpleWindowClass ;
+            }
+            else
+            {
+                wclass = kPlainWindowClass ;
+            }
             activationScopeSet = true;
             activationScope = kWindowActivationScopeNone;
         }
@@ -1655,7 +1665,7 @@ void wxNonOwnedWindowCarbonImpl::Create(
     }
 
     attr |= kWindowCompositingAttribute;
-#if 0 // wxOSX_USE_CORE_GRAPHICS ; TODO : decide on overall handling of high dpi screens (pixel vs userscale)
+#if 0 // TODO : decide on overall handling of high dpi screens (pixel vs userscale)
     attr |= kWindowFrameworkScaledAttribute;
 #endif