Re: Copying Bitmap
- From: Joseph M. Newcomer <newcomer@xxxxxxxxxxxx>
- Date: Sun, 03 Jun 2007 12:22:09 -0400
The goal also included avoiding 'new'.
joe
On Sun, 03 Jun 2007 09:06:04 GMT, MrAsm <mrasm@xxxxxxx> wrote:
On Sat, 02 Jun 2007 21:57:13 -0400, Joseph M. NewcomerJoseph M. Newcomer [MVP]
<newcomer@xxxxxxxxxxxx> wrote:
The problem is to have a generic DC which could be either a window DC *or* a client DC,
and MFC does not support a generic way to get a DC which could be either, hence the need
to go around it.
joe
I did not test it, but would the following be OK?
CDC * pDC;
if ( FullWnd )
pDC = new CWindowDC( wnd );
else
pDC = new CClientDC( wnd );
// Use pDC ...
...
delete pDC;
pDC = NULL;
MrAsm
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.
- Follow-Ups:
- Re: Copying Bitmap
- From: MrAsm
- Re: Copying Bitmap
- References:
- Re: Copying Bitmap
- From: Joseph M . Newcomer
- Re: Copying Bitmap
- From: Joseph M . Newcomer
- Re: Copying Bitmap
- From: Ashot Geodakov
- Re: Copying Bitmap
- From: Joseph M . Newcomer
- Re: Copying Bitmap
- From: MrAsm
- Re: Copying Bitmap
- Prev by Date: Re: List box and tool tips
- Next by Date: Re: Problem with refreshing animated bitmap
- Previous by thread: Re: Copying Bitmap
- Next by thread: Re: Copying Bitmap
- Index(es):
Relevant Pages
|
Loading