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
This commit is contained in:
parent
f80ea77b4a
commit
f57d9215b8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user