Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 354
  • Last Modified:

Search RichEdit v2.0

Hello experts!
I used RichEdit v2.0. I want to splits content of RichEdit into sentences by find positions of '.' and '\n' characters. But I don't know how to do that or if it good if do that. If you can, give me some example. Please help me. Thanks in advanced.
0
DavidThanh
Asked:
DavidThanh
  • 3
1 Solution
 
Jaime OlivaresCommented:
Just have to manage it as a regular editbox, it support WM_GETTEXT message. Also you may need WM_GETTEXTLENGTH to reserve memory for string.
After you recover the control's contents, you can parse it easily.
0
 
Jaime OlivaresCommented:
If you are working with MFC, you can use GetWindowText() and GetTextLength().
More information at:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore/html/_core_Using_CRichEditCtrl.asp
0
 
DavidThanhAuthor Commented:
Thank  jaime_olivares! Anyway, how to draw selection area of selected text in RichEdit, save as we hold and move mouse to select text? Help me please!
DavidThanh
0
 
Jaime OlivaresCommented:
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now