我正在尝试覆盖 AdvancedCustomDrawItem 方法,因为我想让我的所有者 TreeView 这是我的尝试:
type TTreeView=class (Vcl.ComCtrls.TTreeView )
protected
procedure AdvancedCustomDrawItem(
Node: TTreeNode; State: TCustomDrawState; Stage: TCustomDrawStage;
var PaintImages, DefaultDraw: Boolean);override;
end;
但我收到此错误:[dcc32 Error] Unit1.pas(10): E2137 Method 'AdvancedCustomDrawItem' not found in base class