CaptureHotKey Example for C++ 5.0 and later
m_pRasterScr1.PutCaptureCount(1);
/*set hotkey to Ctrl + F12*/
m_pRasterScr1.PutCaptureHotKey(123); /*F12*/
m_pRasterScr1.PutCaptureHotKeyModifiers(SCR_MOD_CONTROL);
m_pRasterScr1.CaptureArea(SCR_CAP_AREA_RECT);