Commit 93fbe8b7 authored by Geoff Voelker's avatar Geoff Voelker

(msh_mousewheel): New variable.

(w32_msg_pump): Register that Emacs accepts mousewheel events.
(w32_wnd_proc): Check for mousewheel events.
parent f5136913
......@@ -176,6 +176,9 @@ static unsigned mouse_button_timer; /* non-zero when timer is active */
static W32Msg saved_mouse_move_msg;
static unsigned mouse_move_timer;
/* W95 mousewheel handler */
unsigned int msh_mousewheel = 0;
#define MOUSE_BUTTON_ID 1
#define MOUSE_MOVE_ID 2
......@@ -3124,6 +3127,8 @@ w32_msg_pump (deferred_msg * msg_buf)
{
MSG msg;
msh_mousewheel = RegisterWindowMessage (MSH_MOUSEWHEEL);
while (GetMessage (&msg, NULL, 0, 0))
{
if (msg.hwnd == NULL)
......@@ -3908,6 +3913,14 @@ w32_wnd_proc (hwnd, msg, wParam, lParam)
}
default:
/* Check for messages registered at runtime. */
if (msg == msh_mousewheel)
{
wmsg.dwModifiers = w32_get_modifiers ();
my_post_msg (&wmsg, hwnd, msg, wParam, lParam);
return 0;
}
dflt:
return DefWindowProc (hwnd, msg, wParam, lParam);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment