Solved

Search RichEdit v2.0

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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

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…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

760 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

21 Experts available now in Live!

Get 1:1 Help Now