mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-05 23:58:06 +02:00
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:
parent
85a2f5309e
commit
9231f2ca08
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user