🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Getting text from an unknown control

#539
From: S.R. Heller
Date: Sun, 23 Jan 2000 00:00
22 lines
1839 bytes
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: <86gnu3$bpr$0@dosa.alt.net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1091e5,f723aeebe3d951f9,start
X-Google-Attributes: gid1091e5,public
X-Google-Thread: 10baee,f723aeebe3d951f9,start
X-Google-Attributes: gid10baee,public
From: S.R. Heller <srheller@oz.net>
Subject: Getting text from an unknown control
Date: 2000/01/23
Message-ID: <86gnu3$bpr$0@dosa.alt.net>
X-Deja-AN: 576785279
Content-Transfer-Encoding: 7bit
Organization: .
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0
Reply-To: srheller@oz.net
Newsgroups: comp.lang.pascal.delphi.misc,borland.public.delphi.winapi