SetBitmapBits

2.x

  LONG SetBitmapBits(hbmp, cBits, lpvBits)    
  HBITMAP hbmp; /* handle of bitmap, */  
  DWORD cBits; /* number of bytes in bitmap array */
  const void FAR* lpvBits; /* address of array with bitmap bits */

The SetBitmapBits function sets the bits of the given bitmap, to the specified bit values.

Parameters

hbmp

Identifies the bitmap to be set.

cBits

Specifies the number of bytes pointed to by the lpvBits parameter.

lpvBits

Points to an array of bytes for the bitmap bits.

Return Value

The return value is the number of bytes used in setting the bitmap bits, if the function is successful. Otherwise, the return value is zero.

See Also

GetBitmapBits