]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/statbox_osx.cpp
Applied Blit system options optimization to StretchBlit
[wxWidgets.git] / src / osx / statbox_osx.cpp
index c093cd384fa2e96e4ee57c626b6a044d009c0f4b..0d9c91c62976f7aab7a343200c36dc116ef5c13d 100644 (file)
@@ -23,15 +23,15 @@ bool wxStaticBox::Create( wxWindow *parent,
     const wxSize& size,
     long style,
     const wxString& name )
-{
-    m_macIsUserPane = false;
-
+{    
+    DontCreatePeer();
+    
     if ( !wxControl::Create( parent, id, pos, size, style, wxDefaultValidator, name ) )
         return false;
 
     m_labelOrig = m_label = label;
 
-    m_peer = wxWidgetImpl::CreateGroupBox( this, parent, id, label, pos, size, style, GetExtraStyle() );
+    SetPeer(wxWidgetImpl::CreateGroupBox( this, parent, id, label, pos, size, style, GetExtraStyle() ));
 
     MacPostControlCreate( pos, size );