Re: CPaintDC class
- From: Alex Blekhman <xfkt@xxxxxxxxx>
- Date: Wed, 04 Oct 2006 17:22:02 +0200
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.
.
- References:
- CPaintDC class
- From: NickP
- Re: CPaintDC class
- From: Alex Blekhman
- Re: CPaintDC class
- From: John Carson
- CPaintDC class
- Prev by Date: Re: Position of MS regarding the future C++ Standard
- Next by Date: Re: CPaintDC class
- Previous by thread: Re: CPaintDC class
- Next by thread: Re: CPaintDC class
- Index(es):
Loading