🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Send messages to a TSpeedButton

#4313
From: Lapo
Date: Fri, 10 Feb 2006 12:51
10 lines
1415 bytes
Hi all,
my goal is to simulate a mouse left-click over a TSpeedButton in an application coded and Delphi without moving mouse pointer.
The TSpeedButton is inside a TPanel that is inside a TForm.
I just tried to find the hWnd of the TSpeedButton, but I cannot.
After I found the hWnd of the Main form, I start EnumChildWindow to find every child window inside the form and I can find the TPanel. Now I look for to find the TSpeedButton, but it seems to be none there.
How TSpeedButton are created? They have or haven't a hWnd?
Thanks in advanca for every suggestion.

Lapo
Technical Details
Message-ID: <43ec9a78$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!nntp.theplanet.net!inewsm1.nntp.theplanet.net!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,a736f68831bb0abe,start
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Lapo" <lapo@antispam.com>
Sender: "Lapo" <lapo@antispam.com>
Reply-To: "Lapo" <lapo@antispam.com>
Subject: Send messages to a TSpeedButton
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 81.123.4.78     
NNTP-Posting-Host: 207.105.83.66
Message-ID: <43ec9a78$1@newsgroups.borland.com>
Date: 10 Feb 2006 05:51:52 -0700
X-Trace: newsgroups.borland.com 1139579512 207.105.83.66 (10 Feb 2006 05:51:52 -0700)
Lines: 10
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!nntp.theplanet.net!inewsm1.nntp.theplanet.net!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail