Fixes for calling Enable() on children of a disabled TLW in wxMSW.
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 22 Oct 2010 14:17:48 +0000 (14:17 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 22 Oct 2010 14:17:48 +0000 (14:17 +0000)
commita0fe77034b8b65a2f9be0f511f19560ee8804740
tree69131ecabba68af50388624369d2743706848d7c
parent1af292a686568e354b0886fcde3b280d1c845d30
Fixes for calling Enable() on children of a disabled TLW in wxMSW.

The change of the child window state wasn't reflected immediately if it was
done while the TLW itself was disabled but only happened when it was
reenabled and in some cases the child could not be enabled even then.

Fix this by updating the child state immediately, even when its TLW parent is
disabled and only skip the update of the children state when TLW is being
disabled, not when it's enabled back.

Closes #11622.

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