added wxGetTopLevelParent()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15217 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1795,4 +1795,15 @@ void wxWindowBase::ReleaseMouse()
|
||||
GetCapture());
|
||||
}
|
||||
|
||||
// vi:sts=4:sw=4:et
|
||||
// ----------------------------------------------------------------------------
|
||||
// global functions
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
wxWindow* wxGetTopLevelParent(wxWindow *win)
|
||||
{
|
||||
while ( win && !win->IsTopLevel() )
|
||||
win = win->GetParent();
|
||||
|
||||
return win;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user