BitBlt function

The BitBlt function performs a bit-block transfer of the color data corresponding to a rectangle of pixels from the specified source device context into a destination device context.
To make it short, BitBlt transfers source DC bitmap bits to destination DC. Which means, you must have an already formed bitmap in source DC prior to blitting one.

Yet again, refer to CreateDIBSection


A DIBSection wrapper for Win32 and WinCE
By Chris Maunder, 22 May 2001