🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #8685

Re: Get text from a richedit in another program?

#8685
From: Remy Lebeau (TeamB)
Date: Sun, 26 Sep 2004 22:40
26 lines
1724 bytes
"187" <bigal187@invalid.rx.eastcoasttfc.com> wrote in message
news:2romm9F1capsuU1@uni-berlin.de...

> I've written little programs before in BCB5 using FindWindow and
> such to get text from a single line textbox, but how would one go
> about get lines from a multiline textbox, like a memo

The exact same way.  A single-line edit control and a multi-line edit
control are the exact same control.  The memo simply has the ES_MULTILINE
style enabled whereas the single-line control does not.

> how would one get it from a Richedit

The same was as with the edit controls.

> how to grab not jsut the text but the styles too (color,
> font, bold, italic, etc).

Look at ES_STREAMOUT.

I suggest you read the Win32 API documentation, everything you need to know
about those4 controls is documented.


Gambit
Technical Details
Message-ID: <41574541$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!news.moat.net!news.linkpendium.com!news.linkpendium.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <2romm9F1capsuU1@uni-berlin.de>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,e07ea0511ae7ecb0
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <2romm9F1capsuU1@uni-berlin.de>
Subject: Re: Get text from a richedit in another program?
Date: Sun, 26 Sep 2004 15:40:09 -0700
Lines: 28
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.69.17.41
Message-ID: <41574541$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1096238401 68.69.17.41 (26 Sep 2004 15:40:01 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!news.moat.net!news.linkpendium.com!news.linkpendium.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail