moving embedding to common API
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56218 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -274,19 +274,11 @@ void wxWindowMac::MacPostControlCreate(const wxPoint& WXUNUSED(pos), const wxSiz
|
||||
{
|
||||
wxASSERT_MSG( m_peer != NULL && m_peer->IsOk() , wxT("No valid mac control") ) ;
|
||||
|
||||
#if wxOSX_USE_CARBON
|
||||
m_peer->SetReference( (URefCon) this ) ;
|
||||
#endif
|
||||
|
||||
GetParent()->AddChild( this );
|
||||
|
||||
#if wxOSX_USE_CARBON
|
||||
m_peer->InstallEventHandler();
|
||||
m_peer->Embed(GetParent()->GetPeer());
|
||||
|
||||
ControlRef container = (ControlRef) GetParent()->GetHandle() ;
|
||||
wxASSERT_MSG( container != NULL , wxT("No valid mac container control") ) ;
|
||||
::EmbedControl( m_peer->GetControlRef() , container ) ;
|
||||
#endif
|
||||
GetParent()->MacChildAdded() ;
|
||||
|
||||
// adjust font, controlsize etc
|
||||
|
Reference in New Issue
Block a user