|
-
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
-
Mar 1st, 2002, 11:43 AM
#2
Addicted Member
InvalidateRect will do it. You will need the hwnd of the desktop though.
-
Mar 1st, 2002, 12:01 PM
#3
Addicted Member
Try this code, I got it from ALLAPI.net, a very usefull website!
Code:
Private Declare Function InvalidateRect Lib "user32" (ByVal hwnd As Long, lpRect As Long, ByVal bErase As Long) As Long
' This will repaint all windows and the desktop
InvalidateRect 0&, 0&, False
-
Aug 7th, 2004, 10:40 AM
#4
Hyperactive Member
Thanks for the refresh code. Worked like a charm!
-
Aug 10th, 2004, 05:10 PM
#5
Member
HI
i think u can use the RedrawWindow API
or UpdateWindow
-
Aug 10th, 2004, 05:16 PM
#6
Frenzied Member
YAY another response to a 2 year old post
:::`DISCLAIMER`:::
Do NOT take anything i have posted to be truthful in any way, shape or form.
Thank You!
--------------------------------
"Never heard about "hiking" poles. I usualy just grab a stick from the nature, and use that as a pole." - NoteMe
"Finaly I can look as gay as I want..." - NoteMe
Languages: VB6, BASIC, Java, C#. C++
-
Aug 10th, 2004, 05:35 PM
#7
Member
Loooooooooooooooool
i did't saw the date of submition
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
|