]> git.saurik.com Git - wxWidgets.git/commit
Fix HasFocus() for composite controls.
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 18 Nov 2011 23:40:53 +0000 (23:40 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 18 Nov 2011 23:40:53 +0000 (23:40 +0000)
commitec90f7158e79f18f26f0f4e43497534254a9d0da
treedead0617987e17ebe95f8ca8177708f993d10ce4
parent60eabdbebf37c13e8011cdd2e5fb3faa18c95d91
Fix HasFocus() for composite controls.

Comparing the result of DoFindFocus() with the main window of composite
control doesn't work as it can return a child window so HasFocus() still
returned false for a composite control such as generic wxListCtrl even when it
did have focus.

Just use FindFocus() instead of DoFindFocus() to fix this.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69788 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/common/wincmn.cpp