]> git.saurik.com Git - wxWidgets.git/commit - samples/controls/controls.cpp
Inherit notebook background recursively under wxMSW.
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 10 Aug 2010 21:48:17 +0000 (21:48 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 10 Aug 2010 21:48:17 +0000 (21:48 +0000)
commitd9317033424d174e96f48d6bb3241cac1bdcf1bc
tree45988a8f36c658b5498042902914a71248c0ea62
parente9f935cb70df10fb95df5a884178265b716b69c9
Inherit notebook background recursively under wxMSW.

With MSWSetTransparentBackground() hack only the panel which was the immediate
child of wxNotebook (i.e. its page) inherited the notebook background but not
its children. This resulted in jarring background discontinuities when nested
panels were used.

Fix this by inheriting notebook background in all child panels by testing for
the return value of the parents MSWHasInheritableBackground() method in
wxPanel::HasTransparentBackground() recursively.

Closes #12317.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65238 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/generic/panelg.h
include/wx/msw/notebook.h
include/wx/msw/window.h
samples/controls/controls.cpp
src/generic/panelg.cpp
src/msw/notebook.cpp