]> git.saurik.com Git - wxWidgets.git/commit
Better fix for wxSpinCtrlGeneric enabling/disabling bug in wxMSW.
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 29 Dec 2011 22:05:27 +0000 (22:05 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 29 Dec 2011 22:05:27 +0000 (22:05 +0000)
commita2fb9138b2cc4795371bc5d561eee42de39f1a7d
tree6f75d5d31337f78b40c543defab17b96d6a2a2ea
parentbe8fbbff6637fbbc011f48e8b41d291467b95d61
Better fix for wxSpinCtrlGeneric enabling/disabling bug in wxMSW.

To really ensure that the window containing the components of wxSpinCtrlGeneric
is never enabled under MSW (as we want to avoid this to ensure that any input
always goes to its children and not the window itself, see #12045), override
DoEnable() and not Enable(). This takes care of the case when the control gets
implicitly disabled because its parent is.

Closes #13142.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70178 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/generic/spinctlg.h
src/generic/spinctlg.cpp