- // Only apply to notebook pages and transparent children, see
- // wxWindow::MSWGetBgBrushForChild() for explanation
- bool shouldApply;
- if ( child->GetParent() == this )
- {
- // notebook page -- apply background
- shouldApply = true;
- }
- else
- {
- // controls in a notebook page with transparent background should
- // be handled too
- shouldApply = child->HasTransparentBackground() &&
- child->GetParent()->GetParent() == this;
- }
-
- if ( m_hbrBackground && shouldApply )