Refresh GetDc( 0 ) - or it's equivilent

O.K, I'll make  this a quicky - I have made a program that draws directly onto the windows canvas - the handle GetDc(0).  All I want to do is repaint this to remove all the stuff I have drawn on it.  This is all I've done:


And After, I free TheCanvas.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Invalidate(0, nil, True);

Ciao, Mike

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
bogieman_Author Commented:
i used invalidateRect(0,Rect(0,0,800,600)) instead - I have D3 and could not find invalidate(..) - was it a typo? Anyway thanks...
Yes, sorry, a typo. Should be InvalidateRect. You can omit the rectangle (as I did passing nil) to refresh the entire window.

Ciao, Mike
This question was awarded, but never cleared due to the JSP-500 errors of that time.  It was "stuck" against userID -1 versus the intended expert whom you awarded.  This corrects the problem and the expert will now receive these points; points verified.

Please click on your Member Profile and select "View Question History" to navigate through any open or locked questions you may have to update and finalize them.  If you are an EE Pro user, you can also choose Power Search to find all your open questions.

This is the Community Support link, if help is needed, along with the link to All Topics which reflects many TAs recently added.
Thank you,
Moderator @ Experts Exchange
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.