I have a device compatible bitmap where everything is drawn. After making some changes to the bitmap,
I want to invalidate the area that was changed so that the corresponding client area will be updated.
The client area might not be showing the entire area that was changed in the bitmap, though. Part of the
area that was changed (in the bitmap) might be lying inside the client area and part of it might be lying
outside of the client area.
Do I need to make sure that the rectangle being invalidated resides within the client area?
So do I need to get the intersection of the area I'm invalidating and the client area?
Or does BeginPaint() make sure that the rectangle in the paint structure lies within the client area?
Does InvalidateRect() and BeginPaint() give me a rectangle within the client area automatically?
I am using the rectangle in the paint structure for the bitblt.