X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b2680ced12cbbed16990007c5fa3ea7730700122..ef6ece2352e739f843d9fc08d96d46b6467b83d6:/src/osx/carbon/nonownedwnd.cpp diff --git a/src/osx/carbon/nonownedwnd.cpp b/src/osx/carbon/nonownedwnd.cpp index 17319a4ea5..8a5b11cd8b 100644 --- a/src/osx/carbon/nonownedwnd.cpp +++ b/src/osx/carbon/nonownedwnd.cpp @@ -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