提交 22d2bfc7 编写于 作者: P pchelko

8025585: Win: Popups in JFXPanel do not receive MouseWheel events

Reviewed-by: anthony, art
上级 e013a78c
......@@ -1516,10 +1516,19 @@ BOOL AwtToolkit::PreProcessMouseMsg(AwtComponent* p, MSG& msg)
* the mouse, not the Component with the input focus.
*/
if (msg.message == WM_MOUSEWHEEL &&
AwtToolkit::MainThread() == ::GetWindowThreadProcessId(hWndForWheel, NULL)) {
if (msg.message == WM_MOUSEWHEEL) {
//i.e. mouse is over client area for this window
msg.hwnd = hWndForWheel;
DWORD hWndForWheelProcess;
DWORD hWndForWheelThread = ::GetWindowThreadProcessId(hWndForWheel, &hWndForWheelProcess);
if (::GetCurrentProcessId() == hWndForWheelProcess) {
if (AwtToolkit::MainThread() == hWndForWheelThread) {
msg.hwnd = hWndForWheel;
} else {
// Interop mode, redispatch the event to another toolkit.
::SendMessage(hWndForWheel, msg.message, mouseWParam, mouseLParam);
return TRUE;
}
}
}
/*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册