The scenario is, I have a Scrollbox which is a container control for several custom controls which I create at runtime. The custom controls are movable and resizeable.
Typically the custom controls contain charts populated with data, some of the charts contain quite a lot of data so repainting them is quite expensive time wise.
The enclosing custom control is the vehicle which allows the charts to be moved around the scrollbox and the one that is moved never gets a paint message.
However if the control moves over another control, then that control gets a paint message which stutters the movement and creates "trails" (which clear themselves once movement is finished);
The question is, why are these controls getting paint messages in the first place if nothing has changed in them to warrant a repaint?
Why does it not just use the double buffered bitmap like the one that is being moved?