🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Getting text from within a window

#5502
From: Gary Setter
Date: Wed, 10 Aug 2005 16:43
18 lines
1655 bytes
"Jeff" <Jeff@nospam.com> wrote in message
news:42fa2cc5@newsgroups.borland.com...
> I'm trying to get static text that is in a window. I've got a handle to
the
> window, but every thing I've tried (i.e. GetWindowText(), WM_GETTEXT) has
> only retrieved the caption. How can I retrieve the text of a label within
> the window?
>
> Here's a code snippet from my last attempt:
>
> SendMessage(hWindow, WM_GETTEXT, GetWindowTextLength(hWindow) + 1,
> (LPARAM)ptr_chrTitle);
>
Can you get the handle of the lable? Maybe you can tell use a bit more about
how you have set things up.

Gary
Technical Details
Message-ID: <42fa2ed6@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!hwmnpeer01.lga!hwmedia!feed7.newsreader.com!feed5.newsreader.com!newsreader.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <42fa2cc5@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,148e8a2231e7af2d
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Gary Setter" <setterg@worldnet.att.net>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <42fa2cc5@newsgroups.borland.com>
Subject: Re: Getting text from within a window
Date: Wed, 10 Aug 2005 11:43:57 -0500
Lines: 19
MIME-Version: 1.0
Content-Type: text/plain;
 charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
NNTP-Posting-Host: 12.74.20.69
Message-ID: <42fa2ed6@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1123692246 12.74.20.69 (10 Aug 2005 09:44:06 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!hwmnpeer01.lga!hwmedia!feed7.newsreader.com!feed5.newsreader.com!newsreader.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail