mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-13 09:29:10 +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^.ParentMsgHandler := @ListViewParentMsgHandler;
|
||||||
Params.WindowInfo^.needParentPaint := false;
|
Params.WindowInfo^.needParentPaint := false;
|
||||||
Result := Params.Window;
|
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);
|
UpdateExStyle(Result, LVS_EX_SUBITEMIMAGES, LVS_EX_SUBITEMIMAGES);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
@ -1196,6 +1198,8 @@ begin
|
|||||||
else UpdateExStyle(ALV.Handle, LV_STYLES[AProp].Style, 0);
|
else UpdateExStyle(ALV.Handle, LV_STYLES[AProp].Style, 0);
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
if(aProp=lvpCheckboxes)and aIsSet
|
||||||
|
then ReCreateWnd(ALV)
|
||||||
end;
|
end;
|
||||||
|
|
||||||
class procedure TWin32WSCustomListView.SetProperties(const ALV: TCustomListView; const AProps: TListViewProperties);
|
class procedure TWin32WSCustomListView.SetProperties(const ALV: TCustomListView; const AProps: TListViewProperties);
|
||||||
|
Loading…
Reference in New Issue
Block a user