Refactor: remove wxNotebook::DoDrawBackground() in wxMSW

The code in QueryBgBitmap() and MSWPrintChild() is sufficiently different that
we can't easily reuse the drawing calls between them, so don't tie ourselves
in knots trying to do it, just duplicating these 2 calls in the 2 functions is
not that bad and the code is more clear.

No real changes.
This commit is contained in:
Vadim Zeitlin
2016-04-10 20:49:36 +02:00
parent 0487a3d3f1
commit eed5700a07
2 changed files with 50 additions and 66 deletions

View File

@@ -178,11 +178,6 @@ protected:
// creates the brush to be used for drawing the tab control background
void UpdateBgBrush();
// common part of QueryBgBitmap() and MSWPrintChild()
//
// if child == NULL, draw background for the entire notebook itself
bool DoDrawBackground(WXHDC hDC, wxWindow *child = NULL);
#endif // wxUSE_UXTHEME
// these function are used for reducing flicker on notebook resize