]> git.saurik.com Git - wxWidgets.git/commitdiff
adding compatibility mode fallback for custom window definition procs that don't...
authorStefan Csomor <csomor@advancedconcepts.ch>
Fri, 11 Jun 2004 14:06:50 +0000 (14:06 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Fri, 11 Jun 2004 14:06:50 +0000 (14:06 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27746 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/toplevel.cpp

index 7a1976ac09e071a99161d20e28b91e5b9b6971c3..afeecbafc44a172c44e984fc7274618c583b15dd 100644 (file)
@@ -990,6 +990,11 @@ void  wxTopLevelWindowMac::MacCreateRealWindow( const wxString& title,
     // the content view, so we have to retrieve it explicitely
     HIViewFindByID( HIViewGetRoot( (WindowRef) m_macWindow ) , kHIViewWindowContentID , 
         *m_peer ) ;
+    if ( !m_peer->Ok() )
+    {
+        // compatibility mode fallback
+        GetRootControl( (WindowRef) m_macWindow , *m_peer ) ;
+    }
 #else
     ::CreateRootControl( (WindowRef)m_macWindow , *m_peer ) ;
 #endif