Added wxTopLevelWindow::HasFocus() as discussed.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29398 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1067,4 +1067,13 @@ bool wxTopLevelWindowGTK::SetShape(const wxRegion& region)
|
||||
return do_shape_combine_region(window, region);
|
||||
}
|
||||
|
||||
bool wxTopLevelWindowGTK::HasFocus()
|
||||
{
|
||||
#ifdef __WXGTK20__
|
||||
return GTK_WINDOW( m_widget )->has_toplevel_focus;
|
||||
#else
|
||||
return ( wxGetTopLevelParent(FindFocus()) = this );
|
||||
#endif
|
||||
}
|
||||
|
||||
// vi:sts=4:sw=4:et
|
||||
|
Reference in New Issue
Block a user