示例#1
0
        public static mshtml.IHTMLElement GetEleFromDoc(System.Drawing.Point windowPos, int hwnd, mshtml.IHTMLDocument2 document)
        {
            int hWnd = hwnd;

            ScreenToClient(hWnd, ref windowPos);
            dynamic element = document.elementFromPoint(windowPos.X, windowPos.Y);

            mshtml.IHTMLElement ele = (mshtml.IHTMLElement)element;
            return(ele);
        }