13,826
社区成员
发帖
与我相关
我的任务
分享
void __fastcall TForm1::StringGrid1DrawCell(TObject *Sender, int ACol,
int ARow, TRect &Rect, TGridDrawState State)
{
DrawText(StringGrid1-> Canvas-> Handle, StringGrid1-> Cells[ACol][ARow].c_str(),
-1, (RECT*)&Rect, DT_SINGLELINE | DT_VCENTER | DT_CENTER);
}