Salut,
Mon projet �tant termin�, je voudrais m'attarder sur l'est�tique de ma grille et lui mettre une image de fond.
Le code que j'utilise affiche bien mon image mais par dessus mes cellules et non en image de fond :/
Voici mon code :
Code : S�lectionner tout - Visualiser dans une fen�tre � part
1
2
3
4
5
6
7
8 void __fastcall TForm1::StringGrid1DrawCell(TObject *Sender, int ACol, int ARow, TRect &Rect, TGridDrawState State) { Graphics::TBitmap *pBitmap = new Graphics::TBitmap(); pBitmap->LoadFromFile("C:\\Documents and Settings\\Compaq_Propriétaire\\Bureau\\Albat_r.bmp"); StringGrid1->Canvas->Draw(0,0,pBitmap); }
Partager