don't send mouse events to disabled windows (this really shouldn't be possible as otherwise it allows the user to modify the state of a disabled control)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37803 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2006-03-04 22:09:40 +00:00
parent f124c9086b
commit f0756835d5

View File

@@ -497,6 +497,10 @@ pascal OSStatus wxMacTopLevelMouseEventHandler( EventHandlerCallRef handler , Ev
#endif
}
}
// disabled windows must not get any input messages
if ( currentMouseWindow && !currentMouseWindow->MacIsReallyEnabled() )
currentMouseWindow = NULL;
}
}