Win32: scroll bar: remove flicker on mouse-in/mouse-out in Windows 10 (disable DoubleBuffered).

git-svn-id: trunk@58156 -
This commit is contained in:
ondrej 2018-06-06 14:14:00 +00:00
parent 85a2f5309e
commit 9231f2ca08

View File

@ -43,6 +43,7 @@ type
published
class function CreateHandle(const AWinControl: TWinControl;
const AParams: TCreateParams): HWND; override;
class function GetDoubleBuffered(const AWinControl: TWinControl): Boolean; override;
class procedure SetParams(const AScrollBar: TCustomScrollBar); override;
end;
@ -476,6 +477,12 @@ begin
Result := Params.Window;
end;
class function TWin32WSScrollBar.GetDoubleBuffered(
const AWinControl: TWinControl): Boolean;
begin
Result := GetWin32NativeDoubleBuffered(AWinControl); // double buffered scrollbar flickers on mouse-in/mouse-out on Windows 10
end;
class procedure TWin32WSScrollBar.SetParams(const AScrollBar: TCustomScrollBar);
var
ScrollInfo: TScrollInfo;