🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Getting text from within a window

#5506
From: Jeff
Date: Wed, 10 Aug 2005 19:51
27 lines
2089 bytes
Thank you, I'll look into this.

"Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message 
news:42fa3d58@newsgroups.borland.com...
>
> "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?
>
> After you get the handle of the window that the label belongs to, you need
> to then get the handle of the label itself.  Only then can you access the
> label directly and do whatever you want with it.  Look at FindWindowEx(),
> EnumChildWindows(), or GetDlgItem() to retreive the label's handle.  If 
> the
> label is not placed on the window directly, but rather is on a container
> such as a panel, then you will have to drill down the parent/child 
> hierarchy
> until you reach the container that the label is actually in.
>
>
> Gambit
>
> 
Technical Details
Message-ID: <42fa5ab9$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!zen.net.uk!dedekind.zen.co.uk!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <42fa2cc5@newsgroups.borland.com> <42fa3d58@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: "Jeff" <Jeff@nospam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <42fa2cc5@newsgroups.borland.com> <42fa3d58@newsgroups.borland.com>
Subject: Re: Getting text from within a window
Date: Wed, 10 Aug 2005 13:51:24 -0600
Lines: 29
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2670
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670
NNTP-Posting-Host: 198.68.195.202
Message-ID: <42fa5ab9$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1123703481 198.68.195.202 (10 Aug 2005 12:51:21 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!zen.net.uk!dedekind.zen.co.uk!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail