Article View: borland.public.cppbuilder.nativeapi
Article #3084Re: Message EM_FINDTEXT in TRichEdit
From: Bob Gonder
Date: Sat, 30 Sep 2006 12:48
Date: Sat, 30 Sep 2006 12:48
27 lines
2092 bytes
2092 bytes
Danny wrote: >I would want to find a text in a TRichEdit component in both the directions > I have tried with the message EM_FINDTEXT, but >the upward search don't work. > >I know that upward search work on Microsoft Rich Edit 2.0 and later; and I >think that the TRichEdit component, have load the version 1.0. Is it >possible? >And is possible to load another library? > >I use BCB6 on WinXP. Info about RichEdit versions: (long url, may wrap) http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/commctls/richedit/richeditcontrols/aboutricheditcontrols.asp?frame=true Includes the names of the dlls. Suggests loading the library to make sure the correct version is running: <MSDN> "Before creating a rich edit control, you should call the LoadLibrary function to verify which version of Rich Edit is installed"</MSDN> For XP you would want v3 or v4. Info about EM_FINDTEXT and FR_DOWN : (long url, may wrap) http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/commctls/richedit/richeditcontrols/richeditcontrolreference/richeditmessages/em_findtext.asp?frame=true
Technical Details
Message-ID:
<buosh2hbul7uf37f62b0dranj21pc8270g@4ax.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news1.google.com!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<451e57c0$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,5826838480e0040b X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: Bob Gonder <notbg@notmindspring.invalid> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Message EM_FINDTEXT in TRichEdit Date: Sat, 30 Sep 2006 05:48:28 -0700 Organization: MindSpring Enterprises, Inc. Reply-To: notbg@notmindspring.invalid Message-ID: <buosh2hbul7uf37f62b0dranj21pc8270g@4ax.com> References: <451e57c0$1@newsgroups.borland.com> X-Newsreader: Forte Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 69.69.86.11 X-Trace: newsgroups.borland.com 1159620506 69.69.86.11 (30 Sep 2006 05:48:26 -0700) Lines: 30 Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news1.google.com!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail