After painting to the screen's dc, how do I tell the screen dc to repaint itself so that what ever I drew will disappear?
I tried the following, but it doesn't work:
SendMessage HWND_BROADCAST, WM_PAINT, 0, 0
Any help would be appreciated..
Dan
Printable View
After painting to the screen's dc, how do I tell the screen dc to repaint itself so that what ever I drew will disappear?
I tried the following, but it doesn't work:
SendMessage HWND_BROADCAST, WM_PAINT, 0, 0
Any help would be appreciated..
Dan
this API should do it
Public Declare Function RedrawWindow Lib "user32" Alias "RedrawWindow" (ByVal hwnd As Long, lprcUpdate As RECT, ByVal hrgnUpdate As Long, ByVal fuRedraw As Long) As Long
well I did this before and it worked perfectly.
I programmed a screenmate 2 years back.
try InvalidateRect, that might work too.