BCGControlBar Pro for MFC
static void CBCGPToolBar::AutoGrayInactiveImages ( BOOL  bEnable = TRUE,
int  nGrayPercentage = 0,
BOOL  bRedrawAllToolbars = TRUE 
)
static

Enables a mode when disabled images are generated automatically by the library.

If "auto gray inactive images" option is enabled, the library uses nGrayPercentage value to generate disabled images from regular images. Otherwise you need to provide the library with a set of disabled images (bitmaps).

By default this option is disabled.

Parameters
bEnableIf TRUE, inactive images will be grayed automatically.
nGrayPercentageSpecifies gray percentage. If bEnable is FALSE this value is ignored.
bRedrawAllToolbarsTRUE forces redraw of all toolbars.