Solved

Search RichEdit v2.0

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

ScreenConnect 6.0 Free Trial

Explore all the enhancements in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

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

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…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

831 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