none
elementFromPoint behave different is IE8 version RRS feed

  • Question

  • Hi

    I've a function that worked well in of IE versions until last update of IE8.

    The function returns the element that the mouse is on.
    Part of the code is

    pt -> from the GetCursorPos

    ScreenToClient(hPointedWnd,&pt);

    CComPtr<MSHTML::IHTMLElement> spElmt;

    spElmt = spDocument2->elementFromPoint(pt.x,pt.y);

    For some reason the method elementFromPoint returns html element that is near the element i point with the mouse.
    It looks that the x and y I pass elementFromPoint is no longer valid.

    *** As you can see,I call ScreenToClient before call elementFromPoint.
    *** I've noticed that I have a new version of mshtml.dll - from 22/10/09.

    Thanks
    Assaf

    Saturday, November 21, 2009 9:04 PM

All replies