How do I rell the desktop to redraw?

How do I rell the desktop to redraw?

Post by Don » Fri, 13 Feb 2004 04:30:27


How do I tell the desktop to redraw itself, or, better yet, redraw only a
certain portion of itself? I'm guessing I have to use the InvalidateRect
API?

- Don
 
 
 

How do I rell the desktop to redraw?

Post by Mike D Sut » Fri, 13 Feb 2004 04:35:14

> How do I tell the desktop to redraw itself, or, better yet, redraw only a

Try the RedrawWindow() API call which will invalidate the area and send the appropriate painting commands to the window for you.
If you need the desktop window handle use the GetDesktopWindow() API call.
Hope this helps,

Mike


- Microsoft Visual Basic MVP -
E-Mail: XXXX@XXXXX.COM
WWW: http://www.yqcomputer.com/

 
 
 

How do I rell the desktop to redraw?

Post by Don » Fri, 13 Feb 2004 04:59:22


a
InvalidateRect
the appropriate painting commands to the window for you.

I could not get RedrawWindow to work. I'm actually using API calls from
VB.NET, so I don't know if that's related to the problem or not. I've
managed to figure out how to draw to the desktop using API calls from
VB.NET, but I can't seem to get it to invalidate the part of the screen I'm
drawing onto in order to erase what I've just drawn.

- Don
 
 
 

How do I rell the desktop to redraw?

Post by Mike D Sut » Fri, 13 Feb 2004 07:27:28

> I could not get RedrawWindow to work. I'm actually using API calls from

For VB.NET queries you'd be better off posting to a .NET group such as those listed at:
http://www.yqcomputer.com/
Post the code you have currently and the declaration you're using to the group and they will be able to help with that side of
things, then the MSDN has plenty of help on the function and what the various flags mean for the call iteself:
http://www.yqcomputer.com/
Hope this helps,

Mike


- Microsoft Visual Basic MVP -
E-Mail: XXXX@XXXXX.COM
WWW: http://www.yqcomputer.com/