1) I use c + + Builder to achieve similar find text content in the notepad function, you can find on the 'a' and 'next', according to online, FindDialog controls the specific code to our own implementation, scroll down function can use findtext implementation, but find no up case, my own method especially low efficiency (1: from the beginning to find, until you find a matching string position before the current position; 2: starting from the current position, reverse increase word by word, combining findtext matching to find the location, the efficiency of super low),
2) I loaded a 40 m document to RichEdit1, reoccupy this - & gt; RichEdit2 - & gt; Text=this - & gt; RichEdit1 - & gt; The Text; Copying, results ShowMessage (this - & gt; RichEdit1 - & gt; The Text. The Length ());
ShowMessage (this - & gt; RichEdit2 - & gt; The Text. The Length ());
The result is not the same (39921247 and 23761) what reason is this?
CodePudding user response:
In a variety of methods, finally done, although a little defect, aunt didn't come out to help,,,