Re: CPaintDC class
- From: Alex Blekhman <xfkt@xxxxxxxxx>
- Date: Wed, 04 Oct 2006 17:27:05 +0200
NickP wrote:
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.
This is interesting, to be safe i'm using the PAINTSTRUCT. Thanks for your help :-)
Actually, it's not matter of safety. Destination DC will clip everything outside clip region anyway. However, by knowing update region beforehand, you can optimize your painting code a little bit by omitting the painting of unnecessary parts of client area.
.
- Follow-Ups:
- Re: CPaintDC class
- From: NickP
- Re: CPaintDC class
- References:
- CPaintDC class
- From: NickP
- Re: CPaintDC class
- From: Alex Blekhman
- Re: CPaintDC class
- From: John Carson
- Re: CPaintDC class
- From: NickP
- CPaintDC class
- Prev by Date: Re: CPaintDC class
- Next by Date: Re: Add/Display a (*.chm) help File in VC++ 6.0 MFC Application
- Previous by thread: Re: CPaintDC class
- Next by thread: Re: CPaintDC class
- Index(es):
Relevant Pages
|