- if ( !rgnDummySeps.IsOk() )
- {
- // don't interfere with toolbar default painting at all if we don't
- // need to -- and we don't if we have no dummy separators at all
- return false;
- }
-
- // exclude the area occupied by the controls and stretchable spaces from
- // the update region to prevent the toolbar from drawing separators in it
- if ( !::ValidateRgn(GetHwnd(), GetHrgnOf(rgnDummySeps)) )