ymca2003
Messages postés2070Date d'inscriptionmardi 22 avril 2003StatutMembreDernière intervention 3 juillet 20067 21 nov. 2003 à 23:38
hdc : contexte de la fenête cible.
cx, cy : taille de la zone cliente.
// création d'un contexte d'affichage en mémoire et d'un bitmap associé
HDC hMemDC= CreateCompatibleDC(hdc);
HBITMAP hMemBmp= CreateCompatibleBitmap(hdc, cx,cy);
HBITMAP hOldBmp= SelectBitmap(hMemDC, hMemBmp);
// utilisation de hMemDC pour les dessins
// recopie du contexte en mémoire à l'écran
BitBlt(hdc, 0, 0, cxClient, cyClient, hMemDC, 0, 0, SRCCOPY);