I've written a windowless NPAPI plugin and I want to handle mouse events in NPP_HandleEvent().
I can get WM_PAINT, WM_LBUTTONDOWN, WM_LBUTTONUP, and WM_MOUSEMOVE event without any problem.
However, it's wired that I can't receive any WM_MOUSEWHEEL event.
uint16_t CWinLessPlugin::HandleEvent(void *event)
{
NPEvent *pevent = (NPEvent *) event;
switch (pevent->event)
{
case WM_PAINT:
break;
case WM_MOUSEMOVE:
HandleIt();
break;
case WM_MOUSEWHEEL:
//never
break;
}
return 1;
}
I really can't figure out why :(. Any help will be very appreciated.
chrome version : 31.0.1650.63
firefox version : 25.0.1
WM_MOUSEWHEEL
is not included in the list of (supported) events in the documentation. Firefox definitely doesn't support it [1] [2], Chrome probably doesn't either.