mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-02 00:20:24 +02:00
win32: spin: handle scroll message on arrows
git-svn-id: trunk@54367 -
This commit is contained in:
parent
f5089e9ae4
commit
3cc5149bb4
@ -112,6 +112,7 @@ var
|
||||
DC: HDC;
|
||||
SRect: TRect;
|
||||
Brush: HBRUSH;
|
||||
lWindowInfo: PWin32WindowInfo;
|
||||
begin
|
||||
case Msg of
|
||||
WM_PAINT,
|
||||
@ -138,6 +139,12 @@ begin
|
||||
Result := 1;
|
||||
Exit;
|
||||
end;
|
||||
WM_MOUSEWHEEL:
|
||||
begin
|
||||
lWindowInfo := GetWin32WindowInfo(Window);
|
||||
if (lWindowInfo<>nil) and (lWindowInfo^.AWinControl<>nil) then
|
||||
Exit(CallDefaultWindowProc(lWindowInfo^.AWinControl.Handle, Msg, WParam, LParam));
|
||||
end;
|
||||
end;
|
||||
Result := WindowProc(Window, Msg, WParam, LParam);
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user