4451 |
} |
} |
4452 |
} |
} |
4453 |
|
|
4454 |
button = ( GET_WHEEL_DELTA_WPARAM (msg.msg.wParam) < 0 )? 4 : 3; |
button = (GET_WHEEL_DELTA_WPARAM (msg.msg.wParam) < 0)? 4 : 3; |
4455 |
|
|
4456 |
if (up) |
if (up) |
4457 |
{ |
{ |
4816 |
break; |
break; |
4817 |
|
|
4818 |
default: |
default: |
4819 |
/* Check for messages registered at runtime. */ |
/* Check for messages registered at runtime. */ |
4820 |
if (msg.msg.message == msh_mousewheel) |
if (msg.msg.message == msh_mousewheel) |
4821 |
{ |
{ |
4822 |
if (dpyinfo->grabbed && last_mouse_frame |
/* Forward MSH_MOUSEWHEEL as WM_MOUSEWHEEL. */ |
4823 |
&& FRAME_LIVE_P (last_mouse_frame)) |
msg.msg.message == WM_MOUSEWHEEL; |
4824 |
f = last_mouse_frame; |
prepend_msg (&msg); |
|
else |
|
|
f = x_window_to_frame (dpyinfo, msg.msg.hwnd); |
|
|
|
|
|
if (f) |
|
|
{ |
|
|
if ((!dpyinfo->w32_focus_frame |
|
|
|| f == dpyinfo->w32_focus_frame) |
|
|
&& (numchars >= 1)) |
|
|
{ |
|
|
construct_mouse_wheel (bufp, &msg, f); |
|
|
bufp++; |
|
|
count++; |
|
|
numchars--; |
|
|
} |
|
|
} |
|
4825 |
} |
} |
4826 |
break; |
break; |
4827 |
} |
} |