Use wxNotebook background colour for the tab row background in wxMSW.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 13 Jul 2013 23:23:08 +0000 (23:23 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 13 Jul 2013 23:23:08 +0000 (23:23 +0000)
commitb8d8362ca0727454ebe8a83358c2a3103b09df20
tree384eeedaa96a6311c2a636a343829345aed90a3b
parent7527fdaac83401f3dc5bb849b9be3b2d5d44efd4
Use wxNotebook background colour for the tab row background in wxMSW.

The free space near the tabs was always filled with the default light grey
colour, use wxNotebook background colour itself to fill it now.

Do it by changing the code in wxNotebook::OnPaint() to use the background
colour brush and ExtFloodFill() to paint over the default grey, instead of the
patterned background brush which is supposed to be used for the pages area
only and not for the tabs and which was not even taken into account anyhow as
the default window proc erases the entire contents of the DC we pass to it
anyhow (at least in the default top-aligned tabs case).

Also inherit the background colour from parent by default now, this ensures
that wxNotebook blends with its parent when its background colour has been
explicitly set by default, without the need to call its SetBackgroundColour()
explicitly.

See #13745.

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