🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Finding Windows

#17022
From: Ed Mulroy [TeamB]
Date: Mon, 14 Apr 2003 14:43
30 lines
2486 bytes
Unfortunately I cannot give you a guaranteed scheme for controlling another
program.

You are assuming that the program in its current state will honor the push
of that button.  The word is "assume".  Unless you know the exact logic of
that other program which you are trying to control you cannot know that it
will honor the push so could in fact be doing the right thing to generate a
button push.

This might be a useful time to start the help on the Windows API (win32.hlp)
and look up the function mouse_event.

.  Ed

> Keneth Wagner wrote in message
> news:3e9abb23$1@newsgroups.borland.com...
>
> 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?
Technical Details
Message-ID: <3e9ac91d@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!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> <3e9abb23$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 07:47:43 PST
From: "Ed Mulroy [TeamB]" <ed@mulroyREMOVETHESECHARS.org>
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> <3e9abb23$1@newsgroups.borland.com>
Subject: Re: Finding Windows
Date: Mon, 14 Apr 2003 10:43:27 -0400
Lines: 32
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 24.74.175.102
Message-ID: <3e9ac91d@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1050331421 24.74.175.102 (14 Apr 2003 07:43:41 -0700)
X-Authenticated-User: edmulroy
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail