procedure TForm1.stringgrid1DrawCell(Sender: TObject; ACol, ARow: Integer;
Rect: TRect; State: TGridDrawState);
begin fillRect(sgIvr.Canvas.Handle,Rect,sgIvr.Canvas.Brush.Handle);
DrawText(sgIvr.Canvas.Handle, pchar(sgIvr.Cells[Acol, Arow]),
Length(sgIvr.Cells[Acol, Arow]), Rect, DT_WORDBREAK or DT_LEFT);
// end;
Rect: TRect; State: TGridDrawState);
begin fillRect(sgIvr.Canvas.Handle,Rect,sgIvr.Canvas.Brush.Handle);
DrawText(sgIvr.Canvas.Handle, pchar(sgIvr.Cells[Acol, Arow]),
Length(sgIvr.Cells[Acol, Arow]), Rect, DT_WORDBREAK or DT_LEFT);
// end;
为什么用DRAWTEXT没有产生作用?