From f57d9215b8f9ed8f0c9e65cb9bcf3f5aa4db7869 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Fri, 11 Jun 2004 14:06:50 +0000 Subject: [PATCH] adding compatibility mode fallback for custom window definition procs that don't allocated a content view at all git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27746 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/mac/carbon/toplevel.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/mac/carbon/toplevel.cpp b/src/mac/carbon/toplevel.cpp index 7a1976ac09..afeecbafc4 100644 --- a/src/mac/carbon/toplevel.cpp +++ b/src/mac/carbon/toplevel.cpp @@ -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 -- 2.45.2