Quels sont les éléments du GDI que tu utilises?
j'utilise la fonction GetDC( HDC ) comme cela :
StretchDIBits( GetDC(HwndC), (BarInfoH.nPos + BarInfoH.nPage >= BarInfoH.nMax && BarInfoH.nPage < BarInfoH.nMax )? -(BarInfoH.nMax-BarInfoH.nPage) : -(BarInfoH.nPos/Zoom)*Zoom, (BarInfoV.nPos + BarInfoV.nPage >= BarInfoV.nMax && BarInfoV.nPage < BarInfoV.nMax )? -(BarInfoV.nMax-BarInfoV.nPage) : -(BarInfoV.nPos/Zoom)*Zoom, Image[ 1 ].Width*Zoom, Image[ 1 ].Height*Zoom, 0, 0, Image[ 1 ].Width, Image[ 1 ].Height, Image[ 1 ].DibBits, &Image[ 1 ].BMI, DIB_RGB_COLORS, SRCCOPY);
je pense que ca vient de l'utilisation de GetDC sans ReleaseDC, mais j'en suis pas du tout sur....
Partager