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