]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/notebook.cpp
Separated out book control sizing code
[wxWidgets.git] / src / msw / notebook.cpp
index 53046b87daf55ea2481abf1e6c2b4533e0b4fa9f..8405625fcc097d4e959b72a6dbffa1bc343e35a4 100644 (file)
@@ -844,7 +844,11 @@ void wxNotebook::OnPaint(wxPaintEvent& WXUNUSED(event))
     memdc.SelectObject(bmp);
 
     // if there is no special brush just use the solid background colour
+#if wxUSE_UXTHEME
     HBRUSH hbr = (HBRUSH)m_hbrBackground;
+#else
+    HBRUSH hbr = 0;
+#endif    
     wxBrush brush;
     if ( !hbr )
     {