有一段代码
procedure TInspectorPopup.DrawItem(TheIndex: Integer; Rect: TRect; State: TOwnerDrawState);
begin
Canvas.FillRect(Rect);
with Inspector do DrawPopupItem(Self,TheIndex,Rect,ItemIndex);
end;其中TInspectorPopup是从TCustomListBox继承,Inspector是TListBox类型变量,两者都有ItemIndex成员.
请问上述语句中的ItemIndex是Inspector的,还是TInspectorPopup的成员
procedure TInspectorPopup.DrawItem(TheIndex: Integer; Rect: TRect; State: TOwnerDrawState);
begin
Canvas.FillRect(Rect);
with Inspector do DrawPopupItem(Self,TheIndex,Rect,ItemIndex);
end;其中TInspectorPopup是从TCustomListBox继承,Inspector是TListBox类型变量,两者都有ItemIndex成员.
请问上述语句中的ItemIndex是Inspector的,还是TInspectorPopup的成员
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货