- if ( rectCtrl.Intersects(rectItem) )
- {
- // yes, do erase it!
- dc.DrawRectangle(rectItem);
-
- // Necessary in case we use a no-paint-on-size
- // style in the parent: the controls can disappear
- control->Refresh(false);
- }
- if ( staticText && rectStaticText.Intersects(rectItem) )