intercept mouse down or mousemove - selecting no longer working

Add-in Express™ Support Service
That's what is more important than anything else

intercept mouse down or mousemove - selecting no longer working
 
mark kwan




Posts: 4
Joined: 2010-04-26
Hi, when I intercept either a mouse move or a mouse down (even if doing nothing), it causes dragging on an html page to no longer work. It also doesn't allow any editing, for example, goto www.google.com and try to enter a search term. I can't click on the edit box to type a search term, I can't tab to it.

I've also tried setting pEvtObj.cancelBubble to true/false, pEvtObj.returnValue to true/false. None of the 4 possible combinations work.


//test code
void doSomethingIHTMLEventObj pEvtObj)
{
}

private void IEModule_DocumentComplete(object pDisp, string url)
{
((mshtml.HTMLDocumentEvents2_Event)this.HTMLDocument).onmousemove +=
new HTMLDocumentEvents2_onmousemoveEventHandler(doSomething);
}



Nevermind, I found the solution (below)

*** http://www.codeproject.com/KB/toolbars/MicrosoftMshtml.aspx
Posted 03 May, 2010 15:26:11 Top
Andrei Smolin


Add-in Express team


Posts: 14976
Joined: 2006-05-11
Thank you, Mark!

Regards from Belarus (GMT+2),

Andrei Smolin
Add-in Express Team Leader
Posted 04 May, 2010 04:53:32 Top