BCGControlBar Pro for MFC
void CBCGPCaptionBar::SetBitmap ( UINT  uiBmpResID,
COLORREF  clrTransparent,
BOOL  bStretch = FALSE,
BarElementAlignment  bmpAlignment = ALIGN_RIGHT,
BOOL  bAutoScale = FALSE 
)

Set the bitmap image on the caption bar.

Use this member function to set a bitmap on a caption bar.

The previous bitmap is destroyed automatically. If the caption bar displays an icon (you have called SetIcon()), the bitmap will not be displayed unless you remove the icon by RemoveIcon().

The bitmap is aligned according to the bmpAlignment parameter, which can be one of the following BarElementAlignment enumerated values:

  • ALIGN_LEFT
  • ALIGN_RIGHT
  • ALIGN_CENTER
Parameters
uiBmpResIDSpecifies the ID of the bitmap resource.
clrTransparentAn RGB value which specifies the transparent color of the bitmap.
bStretchIf TRUE, the bitmap will be stretched if it doesn't fit to the image bounding rectangle.
bmpAlignmentSpecifies the alignment of the bitmap.
bAutoScaleIf TRUE, the bitmap will be scaled according to current DPI.