BCGControlBar Pro for MFC
BOOL CBCGPWorkspace::CreateScreenshot ( CBitmap &  bmpScreenshot,
CWnd *  pWnd = NULL 
)

Creates a given window screenshot.

Parameters
bmpScreenshotBitmap which contains a window screenshot.
pWndA pointer to the window; if this parameter is NULL, the main application window will be used.
Returns
Nonzero if the screenshot was successfully created.