Bonjour,
ma question est contenue dans le titre.

J'ai regardé l'aide msdn, mais elle utilise un DDB ce qui lui permet
d'utiliser la fonction GetDIBits.

http://msdn.microsoft.com/en-us/libr...=VS.85%29.aspx :
The following example code defines a function that initializes the
remaining structures, retrieves the array of palette indices, opens
the file, copies the data, and closes the file.

void CreateBMPFile(HWND hwnd, LPTSTR pszFile, PBITMAPINFO pbi,
HBITMAP hBMP, HDC hDC)
{
[...]
// Retrieve the color table (RGBQUAD array) and the bits
// (array of palette indices) from the DIB.
if (!GetDIBits(hDC, hBMP, 0, (WORD) pbih->biHeight, lpBits, pbi,
DIB_RGB_COLORS))
{
errhandler("GetDIBits", hwnd);
}
[...]

}
Merci d'avance