Re: CPaintDC class



John Carson wrote:
BitBlt is very stupid. It just copies bits from source DC to
destination DC. You can use CPaintDC::m_ps member to figure
out exact paint rectangle.

Stupid or not, BitBlt will not paint outside the invalid region in a WM_PAINT call. There may be some performance difference when you use the PAINTSTRUCT variable to clip painting yourself, but I have no information on that.

You're right, of course. I assumed that it's obvious and not worth mentioning. Regarding BitBlt, I always was under impression that it is DC's responsibility to establish and maintain clip region correctly.
.


Loading