🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Finding Windows

#17020
From: Keneth Wagner
Date: Mon, 14 Apr 2003 13:43
44 lines
3103 bytes
yes i know what you mean.  Now i can access the buttons, i get the handle of
the toolbar, and using SendMessage i can access all the buttons, but the
problem is that i can change all in the button, all, but i can not make the
click event.  I'm still looking around to try to do it.  The buttons are
SpeedButtons but you have to access with an item index inside the Toolbar,
and that is what i'm doing with the sendMessage.  There is a message
TB_PUSHBUTTON, but the button only take the view like is pushed, but nothing
happens. I can get the IDCommand from the button, but i don't know if i can
use it to make the click event with other message, do you have any idea
about that?

Thank you very much.

"Ed Mulroy [TeamB]" <ed@mulroyREMOVETHESECHARS.org> schrieb im Newsbeitrag
news:3e9ab23e$1@newsgroups.borland.com...
> I don't know if those buttons are separate windows or are just painted as
if
> they were.  You are trying to control a different program.  If you can see
a
> window in that program which is associated with the button you want, then
> you can send it a message.  To help you see how the windows are arranged
and
> for help in locating the window I suggested that you use WinSight32 or
Spy.
> If they cannot show a window for the button then there may not be one.
The
> alternative may be to move the mouse over the button and generate a mouse
> click.  This has its own problems.  For instance if the program or your
> program has captured the mouse then it won't be able to move there.
>
> The net result is that there is no functionality built into Windows to
> guarantee that you can control another program.  If you want to do that
you
> will have to sneak a peek at what the program is doing and try to subvert
> its activities to achieve your goals.  I cannot give a cookbook recipe
which
> is guaranteed to work on a random program.
>
> .  Ed
>
> > Keneth Wagner wrote in message
> > news:3e9a80ef@newsgroups.borland.com...
>
>
Technical Details
Message-ID: <3e9abb23$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!iad-peer.news.verio.net!news.verio.net!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3e9540f0@newsgroups.borland.com> <3e959b94@newsgroups.borland.com> <3e96ad0d@newsgroups.borland.com> <3e96ae95$1@newsgroups.borland.com> <3e9a80ef@newsgroups.borland.com> <3e9ab23e$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,56e464a3a8a5bbaa
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-04-14 06:48:34 PST
From: "Keneth Wagner" <Keneth_w@msn.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3e9540f0@newsgroups.borland.com> <3e959b94@newsgroups.borland.com> <3e96ad0d@newsgroups.borland.com> <3e96ae95$1@newsgroups.borland.com> <3e9a80ef@newsgroups.borland.com> <3e9ab23e$1@newsgroups.borland.com>
Subject: Re: Finding Windows
Date: Mon, 14 Apr 2003 15:43:32 +0200
Lines: 46
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: 213.157.9.171
Message-ID: <3e9abb23$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1050327843 213.157.9.171 (14 Apr 2003 06:44:03 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!iad-peer.news.verio.net!news.verio.net!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail