- // redraw the background of the given part of the window (or entire window
- // if the parameter is NULL) to erase separator drawn in it
- //
- // return true if the background was erased using DrawThemeBackground()
- bool MSWEraseRect(wxDC& dc, const wxRect *rectItem = NULL);
+#ifdef wxHAS_MSW_BACKGROUND_ERASE_HOOK
+ // do erase the toolbar background, always do it for the entire control as
+ // the caller sets the clipping region correctly to exclude parts which
+ // should not be erased
+ void MSWDoEraseBackground(WXHDC hDC);