BCGControlBar Pro for MFC
HICON CBCGPToolBarImages::ExtractIcon ( int  nIndex,
CSize  sizeIconSVG = CSize(0, 0) 

Extracts an icon from the list of toolbar images.

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.

nIndexSpecifies the zero-based index in the image list at which located an image to be extracted as icon.
sizeIconSVGSpecifies the extracted icon size (for SVG-based image list only).