J'ai utilisé le code suivant pour obtenir une capture d'écran sous Windows.Capture d'écran avec le curseur de la souris
hdcMem = CreateCompatibleDC (hdc) ;
int cx = GetDeviceCaps (hdc, HORZRES);
int cy = GetDeviceCaps (hdc, VERTRES);
HBITMAP hBitmap(NULL);
hBitmap = CreateCompatibleBitmap (hdc, cx, cy) ;
SelectObject (hdcMem, hBitmap) ;
BitBlt(hdcMem, 0, 0, cx, cy, hdc, 0, 0, SRCCOPY);
Cependant, le curseur de la souris n'apparaît pas.
Comment puis-je obtenir le curseur? Ou est-ce qu'une bibliothèque peut faire ça?
Merci d'avance.
Cela pourrait-il être utile? http://stackoverflow.com/questions/918990/c-capturing-the-mouse-cursor-image –
Super! Merci, c'est bon. – KenC