]> git.saurik.com Git - wxWidgets.git/commit
Fix wxSearchCtrl::HasFocus() in the generic version.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 20 Jan 2013 02:09:44 +0000 (02:09 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 20 Jan 2013 02:09:44 +0000 (02:09 +0000)
commit09ca8913fa357e71dd3fb3874de2270e871d6b9e
treee9e29a8e8571af65c839615a5a01b3105a3fa5ff
parentf1a062a1faf57333f7b5e14764e3ef32a274a4bc
Fix wxSearchCtrl::HasFocus() in the generic version.

Override GetMainWindowOfCompositeControl() in the windows composing the
generic wxSearchCtrl to ensure that HasFocus() correctly returns true for the
entire control when any of them has focus.

Add a trivial unit test to check that this really works and facilitate adding
more tests for this class later.

Closes #14970.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73401 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
12 files changed:
src/generic/srchctlg.cpp
tests/Makefile.in
tests/controls/searchctrltest.cpp [new file with mode: 0644]
tests/makefile.bcc
tests/makefile.gcc
tests/makefile.vc
tests/makefile.wat
tests/test.bkl
tests/test_test_gui.dsp
tests/test_vc7_test_gui.vcproj
tests/test_vc8_test_gui.vcproj
tests/test_vc9_test_gui.vcproj