Cette action est irreversible, confirmez la suppression du commentaire ?
Signaler le commentaire
Veuillez sélectionner un problème
Nudité
Violence
Harcèlement
Fraude
Vente illégale
Discours haineux
Terrorisme
Autre
Christian ASTOR
syn-ack a écrit:
ce veut pas marcher!!!!!!!! je pige vraiment pas pourquoi GetObject (capBMP, sizeof (BM), &BM);
- On t'a donné une des solutions hier... - Tu n'as pas bien lu la doc : "If hgdiobj is a handle to a bitmap created by any other means, GetObject returns only the width, height, and color format information of the bitmap. You can obtain the bitmap's bit values by calling the GetDIBits or GetBitmapBits function."
syn-ack a écrit:
ce veut pas marcher!!!!!!!!
je pige vraiment pas pourquoi
GetObject (capBMP, sizeof (BM), &BM);
- On t'a donné une des solutions hier...
- Tu n'as pas bien lu la doc :
"If hgdiobj is a handle to a bitmap created by any other means,
GetObject returns only the width, height, and color format information
of the bitmap.
You can obtain the bitmap's bit values by calling the GetDIBits or
GetBitmapBits function."
ce veut pas marcher!!!!!!!! je pige vraiment pas pourquoi GetObject (capBMP, sizeof (BM), &BM);
- On t'a donné une des solutions hier... - Tu n'as pas bien lu la doc : "If hgdiobj is a handle to a bitmap created by any other means, GetObject returns only the width, height, and color format information of the bitmap. You can obtain the bitmap's bit values by calling the GetDIBits or GetBitmapBits function."
syn-ack
bjr,
ca veut tjr pas marcher,, jai beau essayer, plein de chose, j'arrive tjr au meme resultat. les handle et les Hbitmap, c pas mon truc j'ai bien l'impression.cher mr astor, je solicite ancore votre aide.
wndHDC=GetWindowDC((HWND)cwps.hwnd);
GetWindowRect((HWND)cwps.hwnd, &rc);
hMemDC = CreateCompatibleDC(wndHDC);
capBMP =CreateCompatibleBitmap(wndHDC, 128, 128);
HBITMAP hOld = (HBITMAP) SelectObject(hMemDC,capBMP);
BitBlt(hMemDC,0,0,127,127,wndHDC,0,0,SRCCOPY);
/////////////// la partie du haut a l'air d'etre ok, je l'ai testé en ecrivant sur la fenetre opengl.
ca veut tjr pas marcher,, jai beau essayer, plein de chose, j'arrive tjr au
meme resultat. les handle et les Hbitmap, c pas mon truc j'ai bien
l'impression.cher mr astor, je solicite ancore votre aide.
wndHDC=GetWindowDC((HWND)cwps.hwnd);
GetWindowRect((HWND)cwps.hwnd, &rc);
hMemDC = CreateCompatibleDC(wndHDC);
capBMP =CreateCompatibleBitmap(wndHDC, 128, 128);
HBITMAP hOld = (HBITMAP) SelectObject(hMemDC,capBMP);
BitBlt(hMemDC,0,0,127,127,wndHDC,0,0,SRCCOPY);
/////////////// la partie du haut a l'air d'etre ok, je l'ai testé en
ecrivant sur la fenetre opengl.
ca veut tjr pas marcher,, jai beau essayer, plein de chose, j'arrive tjr au meme resultat. les handle et les Hbitmap, c pas mon truc j'ai bien l'impression.cher mr astor, je solicite ancore votre aide.
wndHDC=GetWindowDC((HWND)cwps.hwnd);
GetWindowRect((HWND)cwps.hwnd, &rc);
hMemDC = CreateCompatibleDC(wndHDC);
capBMP =CreateCompatibleBitmap(wndHDC, 128, 128);
HBITMAP hOld = (HBITMAP) SelectObject(hMemDC,capBMP);
BitBlt(hMemDC,0,0,127,127,wndHDC,0,0,SRCCOPY);
/////////////// la partie du haut a l'air d'etre ok, je l'ai testé en ecrivant sur la fenetre opengl.