mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-19 07:29:25 +02:00
Win32: small optimization in TWin32WSCustomListView.SetProperty.
Add comment to explain why this code is there in the first place, since on first sight it might not make much sense.
This commit is contained in:
parent
57bb5a13e1
commit
0261f3b5ee
@ -1429,13 +1429,13 @@ begin
|
||||
if AIsSet
|
||||
then UpdateExStyle(ALV.Handle, LV_STYLES[AProp].Style, LV_STYLES[AProp].Style)
|
||||
else UpdateExStyle(ALV.Handle, LV_STYLES[AProp].Style, 0);
|
||||
if(aProp=lvpCheckboxes)and aIsSet
|
||||
then ReCreateWnd(ALV) // otherwise wrong size of checkbox, issue #26690
|
||||
end;
|
||||
lsRecreate: begin
|
||||
ReCreateWnd(ALV);
|
||||
end;
|
||||
end;
|
||||
if(aProp=lvpCheckboxes)and aIsSet
|
||||
then ReCreateWnd(ALV)
|
||||
end;
|
||||
|
||||
class procedure TWin32WSCustomListView.SetProperties(const ALV: TCustomListView; const AProps: TListViewProperties);
|
||||
|
Loading…
Reference in New Issue
Block a user