How to redraw a DC after minimizing a Dialog?
Posted on 1998-11-11
I'm writing an App that draws some lines on a STATIC control (simple graphics static control) with a black background. The problem is that after restoring the minimized Dialog, the frame appears without those lines.
I suppose that I have to process the WM_PAINT message but how can I know if the message is sent to redrawing the Dialog or the childwindow (the Static control)??
Is WM_PAINT also sent when hiding a window that was covering my application?
Any help would be greatly appreciated.