|
셀의 색깔을 바꿀수 있기는 한데요...
문제는..
셀의 색깔을넣으면..
거기 있던 글씨가 안보이네요..--;
void __fastcall TForm1::StringGrid1DrawCell(TObject *Sender, long Col, long Row, TRect &Rect, TGridDrawState State)
{
if(selrow == ARow && selcol==ACol)
{
long index = ARow * StringGrid1->ColCount + ACol;
StringGrid1->Canvas->Brush->Color = ColorBox1->Selected;
StringGrid1->Canvas->FillRect(Rect);
ImageList1->Draw(StringGrid1->Canvas,Rect.Left,Rect.Top,index);
if (State.Contains(gdFocused))
StringGrid1->Canvas->DrawFocusRect(Rect);
}
}
코드가 대충 이렇거든요..
어딜 고쳐야 글씨보이게 색깔을넣을수 있는거죠??
|