Forum: GUI-Design mit VCL / FireMonkey / Common Controls
Delphi
by Captnemo,
7. Jul 2015
Ich Antworte mir mal selbst, da ich eine Lösung jetzt gefunden habe. (Für alle, die sowas mal suchen)
Quelle: http://www.delphisource.net/365.html
const
LVM_FIRST = $1000;
LVM_GETSUBITEMRECT = LVM_FIRST + 56;
LVIR_BOUNDS = 0;
function ListView_GetSubItemRect(hwndLV: HWND; iItem, iSubItem: Integer;
Forum: GUI-Design mit VCL / FireMonkey / Common Controls
Delphi
by Captnemo,
7. Jul 2015
Hi,
wie kann ich ein TRect eines SubItems in einem TListView korrekt feststellen?
Mit folgender Funktion hole ich mir das TRect zur Zeit:
r:=lv1.Items.DisplayRect(drBounds);
InlineCheckbox.BoundsRect:=ShrinkToColumn(lv1, 5, r);
.
.
.