BCGControlBar Pro for MFC
HICON CBCGPToolBarImages::ExtractIcon ( int  nIndex)

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.