lecoyote  | ce serait possible de voir un exemple d'utilisation de cette fonction ?
 parcequ'il y a des paramètres que je ne comprend pas comme :
  Code :
 - bool CMainFrame::OnAfficheSingleImage(BITMAPINFO *pbi,DWORD dwImageType,void *pData)
 - {
 - 	CPaintDC dc(this);
 - 	HDC hdc= CreateCompatibleDC(dc);
 - 	SetDIBitsToDevice(hdc,0,0,dwImageType????,dwImageType????,800/*par exemple*/,600,???,???,pData,pbi,???);
 -         ReleaseDC(hdc);
 
  |  
 
  
  Code :
 - int SetDIBitsToDevice(
 -   HDC hdc,              // handle to device context
 -   int XDest,            // x-coordinate of upper-left corner of  
 -                         // dest. rect.
 -   int YDest,            // y-coordinate of upper-left corner of  
 -                         // dest. rect.
 - //qu'un seul DWORD ne m'est passé en paramètre...
 -   DWORD dwWidth,        // source rectangle width
 -   DWORD dwHeight,       // source rectangle height
 - //comment faire pour connaitre width et height ?
 -   int XSrc,             // x-coordinate of lower-left corner of  
 -                         // source rect.
 -   int YSrc,             // y-coordinate of lower-left corner of  
 -                         // source rect.
 -   UINT uStartScan,      // first scan line in array
 -   UINT cScanLines,      // number of scan lines
 -   CONST VOID *lpvBits,  // address of array with DIB bits
 -   CONST BITMAPINFO *lpbmi,  // address of structure with bitmap info.
 -   UINT fuColorUse       // RGB or palette indexes
 - );
 
  |  
 
   en fait je cherche à afficher une image bitmap dans une SDI...    |