Delen via


CBitmap::SetBitmapBits

Sets the bits of a bitmap to the bit values given by lpBits.

DWORD SetBitmapBits( 
   DWORD dwCount, 
   const void* lpBits  
);

Parameters

  • dwCount
    Specifies the number of bytes pointed to by lpBits.

  • lpBits
    Points to the BYTE array that contains the bit values to be copied to the CBitmap object. In order for the bitmap to be able to render its image correctly, the values should be formatted to conform to the height, width and color depth values that were specified when the CBitmap instance was created. For more information, see CBitmap::CreateBitmap.

Return Value

The number of bytes used in setting the bitmap bits; 0 if the function fails.

Requirements

Header: afxwin.h

See Also

Reference

CBitmap Class

Hierarchy Chart

SetBitmapBits

Other Resources

CBitmap Members

Change History

Date

History

Reason

July 2010

Updated with additional info per customer feedback.

Customer feedback.