On May 22, 4:15 pm, Boris Zbarsky <[EMAIL PROTECTED]> wrote:
> yakobom wrote:
> > I got the mouse coordinates within the window by using Windows API,
> > then translated it to twips and added the proper offset (I took the
> > code from nsViewManager::DispatchEvent).
>
> That should work, I would think, unless the Windows API numbers include the
> titlebar or some such...  Also, if you're talking about a web page as opposed 
> to
> the browser chrome, are you getting the mouse coordinates in the right window?
>
> -Boris

OK - I managed to work it out - I had a minor translation issue, but
it's working now.
Thanks anyway.
By the way, Tonikitoo - your suggestion works indeed, but performance-
wise I wanted something that does not require additional event
listening.

yakobom
_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding

Reply via email to