Export (0) Print
Expand All
Expand Minimize

SetBitmapBits (Compact 2013)

3/28/2014

This function sets the bits of color data for a bitmap to the specified values.


LONG SetBitmapBits(
  HBITMAP hbmp,
  DWORD cBytes,
  CONST VOID *lpBits
);

hbmp

[in] Handle to the bitmap to be set.

This must be a compatible bitmap.

cBytes

[in] Specifies the number of bytes pointed to by the lpBits parameter.

lpBits

[in] Pointer to an array of bytes that contain color data for the specified bitmap.

If successful, the function returns the number of bytes used in setting the bitmap bits.

If the function fails, it returns zero.

To get extended error information, call GetLastError.

The array identified by lpBits must be word aligned.

Header

windows.h

Library

coredll.lib

Show:
© 2014 Microsoft