BCGSuite for MFC
BOOL CBCGPAnimCtrl::SetBitmap ( UINT  uiBmpId,
int  nFrameWidth,
COLORREF  clrTransparent = RGB(255, 0, 255),
BOOL  bSizeToContent = TRUE,
BOOL  bDPIAutoScale = FALSE 
)

Sets a new bitmap

Returns
Nonzero if the bitmap was set successfully; otherwise 0.

Loads a bitmap from resources using uiBmpId and builds an image list. You have to use -1 as clrTransparent for opaque bitmaps.

Note. The animation process is stopped during a call to SetBitmap

Parameters
uiBmpIdThe bitmap's resource ID
nFrameWidthThe frame width, used to create an image list
clrTransparentAn RGB value which specifies the transparent color of the bitmap.
bSizeToContentSpecifies whether the bitmap/image list should be stretched to fit the content
bDPIAutoScaleSpecifies whether the bitmap should be automatically scaled according to current DPI.