Hi, I am using RedrawWindow to repaint the Mainform of my Application. When this is done for a brief moment of time the main form loses focus. I could see some parts of Applications behind my Main form. Can anyone help please. thanks in advance.
Printable View
Hi, I am using RedrawWindow to repaint the Mainform of my Application. When this is done for a brief moment of time the main form loses focus. I could see some parts of Applications behind my Main form. Can anyone help please. thanks in advance.
Try to use InvalidateRect instead of RedrawWindow.
Try to return zero from WM_ERASEBKGND.