Solved

Search RichEdit v2.0

Posted on 2004-08-03
6
334 Views
Last Modified: 2010-04-24
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
Comment
Question by:DavidThanh
  • 3
6 Comments
 
LVL 55

Expert Comment

by:Jaime Olivares
ID: 11711909
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
 
LVL 55

Expert Comment

by:Jaime Olivares
ID: 11711921
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
 

Author Comment

by:DavidThanh
ID: 11741405
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
 
LVL 55

Accepted Solution

by:
Jaime Olivares earned 500 total points
ID: 11742786
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

The following diagram presents a diamond class hierarchy: As depicted, diamond inheritance denotes when two classes (e.g., CDerived1 and CDerived2), separately extending a common base class (e.g., CBase), are sub classed simultaneously by a fourt…
In Easy String Encryption Using CryptoAPI in C++ (http://www.experts-exchange.com/viewArticle.jsp?aid=1193) I described how to encrypt text and recommended that the encrypted text be stored as a series of hexadecimal digits -- because cyphertext may…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question