[DllImport("user32.dll")]
public static extern bool GetCaretPos(ref System.Drawing.Point pt);
System.Drawing.Point p = new System.Drawing.Point();
GetCaretPos(ref p);
//webbrowser of System.Windows.Forms
HtmlElement elem = webbrowser.Document.GetElementFromPoint(p);
No comments:
Post a Comment