mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 11:19:26 +02:00
Win32 TListView: fix wrong size of checkboxes on Windows XP. Issue #26690, patch from Andrew G. Khodotov.
git-svn-id: trunk@46240 -
This commit is contained in:
parent
2d6147eb18
commit
6acfc0801e
@ -780,6 +780,8 @@ begin
|
||||
Params.WindowInfo^.ParentMsgHandler := @ListViewParentMsgHandler;
|
||||
Params.WindowInfo^.needParentPaint := false;
|
||||
Result := Params.Window;
|
||||
if TCustomListView(AWinControl).checkboxes
|
||||
then UpdateExStyle(result,lvs_ex_SubitemImages or lvs_Ex_Checkboxes,lvs_ex_SubitemImages or lvs_Ex_Checkboxes) else
|
||||
UpdateExStyle(Result, LVS_EX_SUBITEMIMAGES, LVS_EX_SUBITEMIMAGES);
|
||||
end;
|
||||
|
||||
@ -1196,6 +1198,8 @@ begin
|
||||
else UpdateExStyle(ALV.Handle, LV_STYLES[AProp].Style, 0);
|
||||
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