Built-in MSHTML: mouse wheel ignored

In my VC ++ application, I have a built-in browser (MSHTML). It works great and controls the mouse correctly (for example, clicks and selections are processed in order). However, rotating the mouse wheel over the built-in browser has no effect. That's my problem.

I am not very familiar with the internals of implementing MSHTML and OLE in general. This is a wxWidgets application (wxWidgets is a C ++ GUI library) and I use its IEHTMLWin component (which hosts the MSHTML control and wraps it in the wxWindow interface). However, I have a source and am ready to do some debugging.

Forgetting wxWidgets and speaking exclusively about OLE and MSHTML, what is the right place to start looking for a problem? I tried naive googling for the "mshtml mouse events" or "mshtml wheel" options, but did not give any good pointers.

If you want to take a look at IEHTMLWin code, you can view it here . The iehtmlwin.c file (1.5 k lines) has all the code associated with OLE and implements all the interfaces needed to host a web browser control. It is worth noting that mouse events do not go to the containing wxWindow at all (OnMouse is never called).

{UPD} mshtml version: 6.00.2900.3314. Other applications that support this control (including IE) support the wheel. {/ UPD}


jdigital hint ( winspector) . , . - ( , , RichEdit), WM_MOUSEWHEEL . .

+1
1

Winspector (http://www.windows-spy.com/), Windows. , .

0

All Articles