|
-
Feb 27th, 2002, 10:56 PM
#1
Thread Starter
Frenzied Member
Repaint screen?
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
-
Feb 28th, 2002, 07:43 AM
#2
Frenzied Member
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
Sanity is a full time job
Puh das war harter Stoff!
-
Feb 28th, 2002, 12:38 PM
#3
Frenzied Member
well I did this before and it worked perfectly.
I programmed a screenmate 2 years back.
Sanity is a full time job
Puh das war harter Stoff!
-
Feb 28th, 2002, 07:38 PM
#4
Addicted Member
try InvalidateRect, that might work too.
"1 4m 4 1337 #4xz0r!'
Janus
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|