IN:
int SetDIBits( __in HDC hdc, __in HBITMAP hbmp, __in UINT uStartScan, __in UINT cScanLines, __in const VOID *lpvBits, __in const BITMAPINFO *lpbmi, __in UINT fuColorUse );
The second argument to hbmp is a device-dependent bitmap that will be modified using color information from a device-independent bitmap. hdc is the device context handle on which this (device-dependent) bitmap depends. When the call is made, Windows uses the information from this device context to decide how to perform the conversion.
source share