]> git.saurik.com Git - wxWidgets.git/commit
No changes, just refactor wxMSW background brush methods.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 20 Mar 2011 00:00:29 +0000 (00:00 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 20 Mar 2011 00:00:29 +0000 (00:00 +0000)
commit0a81f130246a2c22a47e2eed31d1e640bf94e0fe
tree083dedfd83d700b732796371d155c3e0333bc392
parent0be027c45bc1890ca714552b8571500278e620e5
No changes, just refactor wxMSW background brush methods.

Factor out MSWGetCustomBgBrush() from MSWGetBgBrushForChild(). This is useful
as in the vast majority of cases the parent window will want to use the same
background brush for all of its children so it doesn't really care about the
concrete child passed to MSWGetBgBrushForChild() and we can adjust the brush
to the child origin in the common code instead of asking each derived class
overriding MSWGetBgBrushForChild() to do this.

This doesn't change anything but will make the upcoming changes to wxPanel
background painting simpler.

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