Solved

Search RichEdit v2.0

Posted on 2004-08-03
6
317 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

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…
A short film showing how OnPage and Connectwise integration works.
I designed this idea while studying technology in the classroom.  This is a semester long project.  Students are asked to take photographs on a specific topic which they find meaningful, it can be a place or situation such as travel or homelessness.…

932 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now