WindowRef tlwref = GetControlOwner( m_controlRef ) ;
- wxTopLevelWindowMac* tlwwx = wxFindWinFromMacWindow( tlwref ) ;
+ wxNonOwnedWindow* tlwwx = wxFindWinFromMacWindow( tlwref ) ;
if ( tlwwx != NULL )
{
ControlRef rootControl = tlwwx->GetPeer()->GetControlRef() ;