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.
Printable View
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.
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
Thank you Olivthill!
I'll give it a try.
Sure - that's exactly what InvalidateRect() and InvalidateRgn() are for.Quote:
Originally Posted by MasterDucky