diff options
author | nyamatongwe <unknown> | 2000-07-14 11:24:26 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2000-07-14 11:24:26 +0000 |
commit | 50817dc8d885256574132ea7200bddb2e74bd89e (patch) | |
tree | 75ef0bccc065a557e7fb257a4dfbae862bfe9148 /src | |
parent | e3cc6be8d4b82f65c747ffba1f1c193714de644a (diff) | |
download | scintilla-mirror-50817dc8d885256574132ea7200bddb2e74bd89e.tar.gz |
Added PositionFromPoint API function.
Diffstat (limited to 'src')
-rw-r--r-- | src/Editor.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx index 3f721d57e..cec634363 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -3476,6 +3476,13 @@ LRESULT Editor::WndProc(UINT iMessage, WPARAM wParam, LPARAM lParam) { Redraw(); break; + case SCI_POSITIONFROMPOINT: { + if (lParam == 0) + return 0; + Point *ppt = reinterpret_cast<Point *>(lParam); + return PositionFromLocation(*ppt); + } + case SCI_GOTOLINE: GoToLine(wParam); break; |