🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.pascal.delphi.misc
Article #541

Re: Getting text from an unknown control

#541
From: Dave Parsons
Date: Mon, 24 Jan 2000 00:00
42 lines
2473 bytes
If it were just a normal window, as opposed to a list, I believe you'd be
able to read the text using the GetWindowText API. I have been able to use
tha in the past without any trouble, although not with list controls.


Good luck!!


--
David G. Parsons
URL: http://www.DrDelphi.com
Email: DrDelphi@DrDelphi.com
Voicemail/Fax: (603) 947-8207
S.R. Heller <srheller@oz.net> wrote in message
news:86gnu3$bpr$0@dosa.alt.net...
> I'm trying to get text from the 'Message List Pane' of the Forte Agent
> newsreader (specifically the Subject of a given message in the list: my
idea
> is to iterate through the messages in the list, grabbing the subject from
> each). I've got a handle to the window, which is described by WinSight as
> 'OwlWindow' (class) and 'ListBrowser' (window title). It appears to be a
> ListView.
>
> I can successfully send WM_X messages to set the focus or send keystrokes,
> but LVM messsages all fail. ListView_GetItemCount(Hwnd) always returns '0'
> no matter how many messages are in the list. Sending the message
> LVM_GETCOLUMNWIDTH always returns '1', no matter the width of the columns,
> and though it should return '0' for a failure. I also tried various LB
> messages. I'd say the root of the problem is that I don't know what the
heck
> this window is. It looks like a ListView, but I'm wondering if it is some
> sort of custom control cooked up with OWL, in which case -- what can I do?
>
> Setting aside the problems of getting data out of someone else's
> application, which I think I understand, is there any way to get strings
out
> of a windowed control, without knowing or apparently being able to
determine
> what type of control it is?
>
> Steve H.
>
Technical Details
Message-ID: <86grp5$oci$1@bob.news.rcn.net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <86gnu3$bpr$0@dosa.alt.net>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1091e5,f723aeebe3d951f9
X-Google-Attributes: gid1091e5,public
X-Google-Thread: 10baee,f723aeebe3d951f9
X-Google-Attributes: gid10baee,public
From: "Dave Parsons" <dparsons@erols.com>
Subject: Re: Getting text from an unknown control
Date: 2000/01/24
Message-ID: <86grp5$oci$1@bob.news.rcn.net>
X-Deja-AN: 576800671
References: <86gnu3$bpr$0@dosa.alt.net>
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
X-Complaints-To: abuse@rcn.com
X-Trace: eIA+A97ITqGr3Gy0zcugtnBCy0H/fUJ3C1XKUhFn/IK6AVZN+tMxww==
X-MSMail-Priority: Normal
NNTP-Posting-Date: 24 Jan 2000 06:34:13 GMT
Newsgroups: comp.lang.pascal.delphi.misc,borland.public.delphi.winapi