Use IsDescendant() in wxTopLevelWindow::IsActive() implementation.
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 27 Mar 2012 11:58:05 +0000 (11:58 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 27 Mar 2012 11:58:05 +0000 (11:58 +0000)
commitdace99a4efdbf2bd93f26fd35fe7630a835ca711
tree5969eac8fea2250d492f5b0ff02016767d2fc6fe
parent8b2f64c6c12f3f110480040b3d8b5328f156c295
Use IsDescendant() in wxTopLevelWindow::IsActive() implementation.

Avoid wxGetTopLevelParent() which doesn't work for the strange TLWs which
override IsTopLevel() to return false, as wxMDIChildFrame does in wxMSW.
Using IsDescendant() works in any case and also is arguably more clear.

Closes #3063.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71025 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/toplevel.h