mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 04:39:24 +02:00
Win32: first attempt at implementing TListView.OnDataHint. Issue #30757.
This commit is contained in:
parent
17b66f88c4
commit
d42c3fe93b
@ -295,7 +295,18 @@ var
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure HandleListViewOwnerDataHint(ALV: TCustomListViewAccess);
|
||||||
|
var
|
||||||
|
DataHintInfo: PNMLVCACHEHINT;
|
||||||
|
begin
|
||||||
|
debugln('HandleListViewOwnerDataHint');
|
||||||
|
DataHintInfo := PNMLVCACHEHINT(LPARAM);
|
||||||
|
if not Assigned(DataHintInfo) or (not ALV.OwnerData) then
|
||||||
|
Exit;
|
||||||
|
ALV.DoOwnerDataHint(DataHintInfo^.iFrom, DataHintInfo^.iTo);
|
||||||
|
end;
|
||||||
|
|
||||||
begin
|
begin
|
||||||
Result := False;
|
Result := False;
|
||||||
case Msg of
|
case Msg of
|
||||||
@ -312,6 +323,8 @@ begin
|
|||||||
end;
|
end;
|
||||||
LVN_ODFINDITEM:
|
LVN_ODFINDITEM:
|
||||||
HandleListViewFindItem(TCustomListViewAccess(AWinControl));
|
HandleListViewFindItem(TCustomListViewAccess(AWinControl));
|
||||||
|
LVN_ODCACHEHINT:
|
||||||
|
HandleListViewOwnerDataHint(TCustomListViewAccess(AWinControl));
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user