BCGControlBar Pro for MFC
HICON CBCGPToolBarImages::ExtractIcon ( int  nIndex,
CSize  sizeIcon = CSize(0, 0),
BOOL  bResizeSVGOnly = TRUE 
)

Extracts an icon from the list of toolbar images.

Returns
A handle to extracted icon. It's NULL if nIndex is out of range (e.g. below zero or greater than the number of images in the image list).

Use this function to extract an icon located at the specified by nIndex index.

Parameters
nIndexSpecifies the zero-based index in the image list at which located an image to be extracted as icon.
sizeIconSpecifies the extracted icon size.
bResizeSVGOnlyOnly the SVG icon will resize if this parameter is TRUE.