How to Redraw(Refresh) a region of desktop?

  • Thread starter Thread starter kiplring
  • Start date Start date
K

kiplring

I wrote a program which draw a dancer at cornor of desktop. ( I
Accessed through hDC)

But It has a problem. I remains all trait at the desktop until I
invoke any Redraw( Refresh) action - click, or drag.

Is there any way invoke Redraw or Refresh a region of desktop? It
should refresh all the window at the region. ( ex) explorer window.)

Thanks.
 
kiplring,

You will have to make a call to the InvalidateRgn API function through
the P/Invoke layer. All you have to do is get a handle to the desktop
(which I assume you already have) and then pass it to the function, along
with the region.

Hope this helps.
 
Back
Top