|
void __fastcall TForm1::StringGrid1DrawCell(TObject *Sender, int ACol,
int ARow, TRect &Rect, TGridDrawState State)
{
if( State.Contains( gdSelected))
{
StringGrid1->Canvas->Brush->Color= clWhite; <-- 여기에 그리드상 바탕 색으로 지정해주면 디폴트커서사라짐
StringGrid1->Canvas->Font->Color=clBlack;
StringGrid1->Canvas->Rectangle(Rect);
StringGrid1->Canvas->TextRect(Rect,Rect.left,Rect.top,StringGrid1->Cells[ACol][ARow]);
}
}
|