L
LongHai
Unregistered / Unconfirmed
GUEST, unregistred user!
procedure TProjectMail_Frm.MailTree_TrvCustomDrawItem(
Sender: TCustomTreeView; Node: TTreeNode; State: TCustomDrawState;
var DefaultDraw: Boolean);
var
NodeRect: TRect;
begin
NodeRect := Node.DisplayRect(True);
NodeRect.Left := NodeRect.Right + 2;
NodeRect.Top := NodeRect.Top + 2;
Sender.Canvas.TextOut(NodeRect.Left, NodeRect.Top, '1');
end;
我写了如上代码,哪位大哥帮忙调试一下,谢谢!
Sender: TCustomTreeView; Node: TTreeNode; State: TCustomDrawState;
var DefaultDraw: Boolean);
var
NodeRect: TRect;
begin
NodeRect := Node.DisplayRect(True);
NodeRect.Left := NodeRect.Right + 2;
NodeRect.Top := NodeRect.Top + 2;
Sender.Canvas.TextOut(NodeRect.Left, NodeRect.Top, '1');
end;
我写了如上代码,哪位大哥帮忙调试一下,谢谢!