published TListView.HideSelection

git-svn-id: trunk@8845 -
This commit is contained in:
vincents 2006-02-28 11:03:48 +00:00
parent 94c7280557
commit 8e1ecbd222
2 changed files with 11 additions and 6 deletions

View File

@ -950,7 +950,7 @@ type
property Font;
// property FullDrag;
// property GridLines;
// property HideSelection;
property HideSelection;
// property HotTrack;
// property HotTrackStyles;
// property HoverTime;

View File

@ -695,11 +695,14 @@ begin
Windows.SetWindowLong(AHandle, GWL_STYLE, NewStyle);
// fix header if needed
if NewStyle and LVS_NOSCROLL = 0 then Exit;
if (NewStyle and LVS_NOSCROLL)<> 0 then begin
if (OldStyle and LVS_NOSCROLL = 0)
or (NewStyle and LVS_REPORT <> 0)
then PositionHeader(AHandle);
end;
if (OldStyle and LVS_NOSCROLL = 0)
or (NewStyle and LVS_REPORT <> 0)
then PositionHeader(AHandle);
//Invalidate Listview, so that changes are made visible
Windows.InvalidateRect(AHandle, nil, true);
end;
procedure TWin32WSCustomListView.UpdateExStyle(const AHandle: THandle; const AMask, AStyle: Integer);
@ -713,6 +716,8 @@ begin
if OldStyle = NewStyle then Exit;
ListView_SetExtendedListViewStyle(AHandle, NewStyle);
//Invalidate Listview, so that changes are made visible
Windows.InvalidateRect(AHandle, nil, true);
end;