]> git.saurik.com Git - wxWidgets.git/blobdiff - src/univ/textctrl.cpp
really fixed wxMenuBar::Remove (bug 610850): reverted incorrect patch 649599 and...
[wxWidgets.git] / src / univ / textctrl.cpp
index 3b15ef1070fea12489dd660c028822a9589f8d76..3f6168f230e23d3bb21e1ef005230025509adfc5 100644 (file)
@@ -2952,6 +2952,18 @@ wxTextCtrlHitTestResult wxTextCtrl::HitTestLine(const wxString& line,
     return res;
 }
 
+wxTextCtrlHitTestResult wxTextCtrl::HitTest(const wxPoint& pt, long *pos) const
+{
+    wxTextCoord x, y;
+    wxTextCtrlHitTestResult rc = HitTest(pt, &x, &y);
+    if ( rc != wxTE_HT_UNKNOWN && pos )
+    {
+        *pos = XYToPosition(x, y);
+    }
+
+    return rc;
+}
+
 wxTextCtrlHitTestResult wxTextCtrl::HitTest(const wxPoint& pos,
                                             wxTextCoord *colOut,
                                             wxTextCoord *rowOut) const