|
-
September 23rd, 2008, 12:16 AM
#1
Repaint only part of the client area
Is there a way to get only a part of the client area with GDI?
Or do i need DirectX for this?
I mean if i wanted to repaint only a little rectangle in the client area and
leave the rest as it is.
-
September 23rd, 2008, 04:17 AM
#2
Re: Repaint only part of the client area
It is possible, e.g.
- If you draw a rectangle, then your program can test the coordinates before issuing the Rectangle() API with coordinates inside your area.
- It is the same for string of characters written with DrawText() or with TextOut().
- If you have a picture, you can use BitBlt() only for the area you want to repaint.
- Or you can use "regions". See http://msdn.microsoft.com/en-us/libr...84(VS.85).aspx
-
September 23rd, 2008, 11:58 AM
#3
Re: Repaint only part of the client area
Thank you Olivthill!
I'll give it a try.
-
September 23rd, 2008, 02:25 PM
#4
Re: Repaint only part of the client area
 Originally Posted by MasterDucky
Is there a way to get only a part of the client area with GDI?
I mean if i wanted to repaint only a little rectangle in the client area and
leave the rest as it is.
Sure - that's exactly what InvalidateRect() and InvalidateRgn() are for.
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
|