BCGControlBar Pro for MFC
BOOL CBCGPVisualContainer::ExportToFile ( const CString &  strFilePath,
CBCGPGraphicsManager pGM,
BOOL  bFullImage = FALSE,
const CBCGPBrush brFill = CBCGPBrush(CBCGPColor::White) 
)

Exports the visual container to an image file (BMP or PNG).

Parameters
strFilePathFull pathname of the file.
pGMThe graphics manager.
bFullImageSpecifies whether full container area will be exported. If this parameter is FALSE, only currently visible container area will be exported.
brFillThe fill brush (a default value is white).
Returns
TRUE if it succeeds, FALSE if it fails.