CMFCCaptionBar::SetBitmap
Visual Studio 2012
Sets the bitmap image for the caption bar.
void SetBitmap( HBITMAP hBitmap, COLORREF clrTransparent, BOOL bStretch=FALSE, BarElementAlignment bmpAlignment=ALIGN_RIGHT ); void SetBitmap( UINT uiBmpResID, COLORREF clrTransparent, BOOL bStretch=FALSE, BarElementAlignment bmpAlignment=ALIGN_RIGHT );
Use this method to set a bitmap on a caption bar.
The previous bitmap is destroyed automatically. If the caption bar displays an icon because you called the CMFCCaptionBar::SetIcon method, the bitmap will not be displayed unless you remove the icon by calling CMFCCaptionBar::RemoveIcon.
The bitmap is aligned as specified by the bmpAlignment parameter. This parameter can be one of the following BarElementAlignment values:
-
ALIGN_INVALID
-
ALIGN_LEFT
-
ALIGN_RIGHT
-
ALIGN_CENTER