peut on me debloquer cela SVP?
ici je cherche a afficher un DIB pour un essai sur boitez de dialog avant de l'imprimer!
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 CBitmap bmp; CDC MemDC; CClientDC pDC(this); BITMAP InfosBmp; bmp.LoadBitmap(IDB_BMPESSAI); bmp.GetBitmap(&InfosBmp); MemDC.CreateCompatibleDC(&pDC); MemDC.SelectObject(&bmp); pDC.SetMapMode(MM_TEXT); pDC.BitBlt( 10,100,InfosBmp.bmWidth, InfosBmp.bmHeight,&MemDC,0,0,SRCCOPY);
Ca marche avec un BMP mais ca plante avec un .dib !
Quelqu'un pour m'aider SVP!
[a l'avenir pense a mettre la balise de code et active le bbcode dans ton profil,Merci Farscape]
Partager