what you can do is to paint on an off screen bitmap and store that and then when you get a paint message only blit the effected area. You also have to change window class properties as DF by default has settings that are not good for this kind of stuff with parent windows to avoid painting issues.

then of course a background thread to paint to the off screen bitmap would make it work really well if we had the ability to