mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-29 10:52:22 +02:00
Fixes bug #14985, fixes problems in wince TListView
git-svn-id: trunk@22547 -
This commit is contained in:
parent
a6b8422291
commit
28013bc2d7
@ -26,7 +26,7 @@ interface
|
||||
|
||||
uses
|
||||
// RTL, FCL
|
||||
Windows, Classes, SysUtils, commctrl, {WinExt,}
|
||||
Windows, Classes, SysUtils, commctrl, WinExt,
|
||||
// Compatibility
|
||||
{$ifdef Win32}win32compat,{$endif}
|
||||
// LCL
|
||||
|
@ -749,24 +749,18 @@ begin
|
||||
end;
|
||||
|
||||
class procedure TWinCEWSCustomListView.UpdateExStyle(const AHandle: THandle; const AMask, AStyle: Integer);
|
||||
{var
|
||||
OldStyle, NewStyle: Integer;}
|
||||
var
|
||||
OldStyle, NewStyle: Integer;
|
||||
begin
|
||||
{
|
||||
OldStyle := ListView_GetExtendedListViewStyle(AHandle);
|
||||
|
||||
OldStyle := SendMessage(AHandle, LVM_GETEXTENDEDLISTVIEWSTYLE, 0, 0);
|
||||
|
||||
NewStyle := (OldStyle and not AMask) or AStyle;
|
||||
|
||||
if OldStyle = NewStyle then Exit;
|
||||
|
||||
roozbeh:not suppoerted!
|
||||
ListView_SetExtendedListViewStyle(AHandle, NewStyle);
|
||||
|
||||
//Invalidate Listview, so that changes are made visible
|
||||
SendMessage(AHandle, LVM_SETEXTENDEDLISTVIEWSTYLE, 0, NewStyle);
|
||||
|
||||
//Invalidate Listview, so that changes are made visible
|
||||
Windows.InvalidateRect(AHandle, nil, true);
|
||||
}
|
||||
end;
|
||||
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user