|
해석좀 해주세요~~
너무 어려워서요~~~
void __fastcall TFrmBinID::sgBinIDDrawCell(TObject *Sender, int ACol,
int ARow, TRect &Rect, TGridDrawState State)
{
sgBinID->Canvas->Brush->Color = ACol % 2 ? TColor(0x0080FFFF) : TColor(0x00C6FE98);
sgBinID->Canvas->Font ->Color = clBlack;
sgBinID->Canvas->FillRect(Rect);
unsigned oldalign = SetTextAlign(sgBinID->Canvas->Handle, TA_CENTER);
//sgBinID->Canvas->TextOut(Rect.Left + 45 , Rect.Top + 6 , sgBinID->Cells[ACol][ARow]);
sgBinID->Canvas->TextRect(Rect, (Rect.Right+Rect.Left)/2, Rect.Top + 7, sgBinID->Cells[ACol][ARow]);
SetTextAlign(sgBinID->Canvas->Handle, oldalign);
}
|