Dialog vs Form interactions
Posted: 4 Feb 2019 18:23
How do I make form windows repaint themselves when another form window passes over them?
Consider two scenarios:
1. Open form FormF then open dialog DlgD.
If I move DlgD around on top of FormF then FormF repaints as expected.
2. Open two forms, FormA and FormB.
If I move FormA around on top of FormB then FormB is "marked up" with edges of FrmA's outer rectangle.
Is there a tidy way of making Windows take care of repainting forms touched by other forms?
One could keep track of the various forms in a separate database and invalidate() them to force a repaint as each top level form was moved, but it seems that should not be necessary for such a common scenario.
Consider two scenarios:
1. Open form FormF then open dialog DlgD.
If I move DlgD around on top of FormF then FormF repaints as expected.
2. Open two forms, FormA and FormB.
If I move FormA around on top of FormB then FormB is "marked up" with edges of FrmA's outer rectangle.
Is there a tidy way of making Windows take care of repainting forms touched by other forms?
One could keep track of the various forms in a separate database and invalidate() them to force a repaint as each top level form was moved, but it seems that should not be necessary for such a common scenario.