Re: From memDC to a Bitmap..... How?
 
"Norbert Unterberg" <nunterberg@newsgroups.nospam> wrote in message 
news:%231Gsbx4WIHA.1204@TK2MSFTNGP03.phx.gbl...
An additional note to the reader:
Even if it looks tempting, it is important to NOT use memDC here.
Although memDC is compatible with pDC, the default bitmap that GDI selects 
into any memory DC is a momochrome bitmap. The call
Bmp.CreateCompatibleBitmap( &memDC, size.cx, size.cy );
would create a momochrome bitmap because GDI creates a bitmap that is 
compatible to the bitmap currently selected into the DC.
Thanks for taking the time to point that out.  I once spent a couple days of 
frustration because I had created the compatible bitmap from the mem DC and 
of course it was not right.  The frustrating thing about these API's is that 
they are really black boxes, and you have no understanding why tweaking 
parameters have the dramatic differences they do.  This epitomizes the early 
days of Windows programming, where it was a vast experiment of trial and 
error, stopping when it worked, but you never really understood why.
-- David