mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-26 13:19:29 +02:00
win32: don't fire Wheel events for disabled windows (bug #0012803)
git-svn-id: trunk@18019 -
This commit is contained in:
parent
cba5df7f65
commit
cd79a420be
@ -1830,11 +1830,12 @@ begin
|
||||
begin
|
||||
X := GET_X_LPARAM(LParam);
|
||||
Y := GET_Y_LPARAM(LParam);
|
||||
// check if mouse cursor within this window, otherwise send message to window the mouse is hovering over
|
||||
// check if mouse cursor within this window, otherwise send message to
|
||||
// window the mouse is hovering over
|
||||
P.X := X;
|
||||
P.Y := Y;
|
||||
TargetWindow := TWin32WidgetSet(WidgetSet).WindowFromPoint(P);
|
||||
if TargetWindow = HWND(nil) then
|
||||
if (TargetWindow = 0) or not IsWindowEnabled(TargetWindow) then
|
||||
exit;
|
||||
|
||||
// check if the window is an edit control of a combobox, if so,
|
||||
|
Loading…
Reference in New Issue
Block a user