BCGControlBar Pro for MFC
void CBCGPStatusBar::SetPaneIcon ( int  nIndex,
HBITMAP  hBmp,
COLORREF  clrTransparent = RGB(255, 0, 255),
BOOL  bUpdate = TRUE,
BOOL  bAlphaBlend = FALSE 
)

Sets indicator icon for a given index.

Call this member function to set the pane icon. If you don't want to display the image anymore just pass the NULL value as the image handle.

If there is any running animation that was set previously by SetPaneAnimation, the animation will be stopped.

Parameters
nIndexIndex of the pane whose image is to be set.
hBmpHandle to the bitmap to be set as the pane image.
clrTransparentTransparent color of the bitmap specified by hBmp.
bUpdateSpecifies whether to update the pane content immediately.
bAlphaBlendShould be TRUE if the icon uses 32 bit color.