Extend FindText() to return end position of matched text in wxSTC

New 5th parameter of FindText() can be used to receive the end position of matched text returned by SCI_FINDTEXT API.

Closes #17305.
Closes https://github.com/wxWidgets/wxWidgets/pull/23
This commit is contained in:
New Pagodi
2017-03-13 20:21:41 +01:00
committed by Artur Wieczorek
parent 187c4692c8
commit 91a2869b0e
6 changed files with 64 additions and 15 deletions

View File

@@ -3555,7 +3555,8 @@ public:
int GetPrintColourMode() const;
// Find some text in the document.
int FindText(int minPos, int maxPos, const wxString& text, int flags=0);
int FindText(int minPos, int maxPos, const wxString& text, int flags=0,
int* findEnd=NULL);
// On Windows, will draw the document into a display context such as a printer.
int FormatRange(bool doDraw,