Changeset 56218 for wxWidgets/trunk/src/osx/carbon/window.cpp
- Timestamp:
- 10/10/08 12:01:32 (3 months ago)
- Files:
-
- 1 modified
-
wxWidgets/trunk/src/osx/carbon/window.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wxWidgets/trunk/src/osx/carbon/window.cpp
r56108 r56218 842 842 } 843 843 844 void wxMacControl::SetReference( URefCon data )845 {846 SetControlReference( m_controlRef , data );847 }848 849 844 void wxMacControl::RemoveFromParent() 850 845 { 851 846 // nothing to do here for carbon 847 HIViewRemoveFromSuperview(m_controlRef); 852 848 } 853 849 854 850 void wxMacControl::Embed( wxWidgetImpl *parent ) 855 851 { 856 // copied from MacPostControlCreate 857 ControlRef container = (ControlRef) parent->GetWXWidget() ; 858 wxASSERT_MSG( container != NULL , wxT("No valid mac container control") ) ; 859 ::EmbedControl( m_controlRef , container ) ; 852 HIViewAddSubview(parent->GetWXWidget(), m_controlRef); 860 853 } 861 854 … … 1389 1382 } 1390 1383 1384 void wxMacControl::AddSubWidget( wxWidgetImpl* widget ) 1385 { 1386 ControlRef container = (ControlRef) GetWXWidget() ; 1387 wxASSERT_MSG( container != NULL , wxT("No valid mac container control") ) ; 1388 ::EmbedControl( (ControlRef) widget->GetWXWidget() , container ) ; 1389 } 1390 1391 1391 // 1392 1392 // Tab Control
