Correct HasFocus() to work with subwindows of a composite control.
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 28 Nov 2011 19:15:57 +0000 (19:15 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 28 Nov 2011 19:15:57 +0000 (19:15 +0000)
commit202388d3bc9bbe1d4e53c5292da767a6764b7f39
tree3316a536fffe873d4672db8b16a7e63fe203e1b3
parent4e2b91bb27c3ab9667b1a8255e423777150b2daa
Correct HasFocus() to work with subwindows of a composite control.

When a subwindow (i.e. one that overrides GetMainWindowOfCompositeControl() to
return a parent window) has focus, HasFocus() should return true for it too,
in addition to returning true for the main window.

This completes the fix of r69788.

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