🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: How to get window-title of a 'special' window?

#15233
From: Ed Mulroy [TeamB]
Date: Sun, 13 Jul 2003 13:02
36 lines
2585 bytes
It looks like it is supplying a window which might then be used by another
program.  You would need to determine who is using it.  I have no magic
bullet for doing that.  It could be something using COM or some other
variant of OLE, and could even be manually driving the window after
determining its HWND using COM.

There are all kinds of tools such as message hooks, debugging and toolhelp
API's, subclassing or superclassing windows, etc which could be used to dive
into what's going on.  You'll probably have to decide how to investigate and
then cut some code to do the investigation.  In doing that you'll probably
need to spend some time with the Windows help files, win32.hlp, and with the
MS Developer Network site http://msdn.microsoft.com/library/default.asp

.  Ed

> M_R wrote in message
> news:g661hv07an36t3epojenvuvq2na40khuj9@4ax.com...
> >You could use WinSight32 and look up the window's
> >caption and relationship to other windows.
>
> Ed, thanks for your answer.
>
> Winsight shows the following tree, where the last entry
> below is my window, I was looking the title/caption for:
>
> Desktop...
> +-Overlapped 00130030E {IETrace}IExplorer.exe
> (13,-1)-(200,1023)"http://www...."
> +-+-Popup 00061596{SunAWTDialog}, EXPLORER.EXE
> (35,5)-(285,228) "Player"
>
>
> GetWindowText() also returns 'Player', but this is not the
> text, the window displays.
>
> What can I do next?
Technical Details
Message-ID: <3f11588d@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-05!sn-xit-08!supernews.com!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <kqe0hvo0ducq0vf7d0dcm06hqlg0j6pru2@4ax.com> <3f105ca8@newsgroups.borland.com> <g661hv07an36t3epojenvuvq2na40khuj9@4ax.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,895a640648e0333c
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-07-13 06:08:12 PST
From: "Ed Mulroy [TeamB]" <ed@mulroyREMOVETHESECHARS.org>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <kqe0hvo0ducq0vf7d0dcm06hqlg0j6pru2@4ax.com> <3f105ca8@newsgroups.borland.com> <g661hv07an36t3epojenvuvq2na40khuj9@4ax.com>
Subject: Re: How to get window-title of a 'special' window?
Date: Sun, 13 Jul 2003 09:02:58 -0400
Lines: 38
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 206.228.162.75
Message-ID: <3f11588d@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1058101389 206.228.162.75 (13 Jul 2003 06:03:09 -0700)
X-Authenticated-User: edmulroy
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-05!sn-xit-08!supernews.com!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail