🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: To Trigger a Button Click on the Main Form

#8527
From: Azazello
Date: Wed, 20 Oct 2004 23:51
10 lines
1597 bytes
> I'm running a thread in which I use the method Click() of a button in the 
> main form (to open a modal window). When I click on [x] the window doesn't 
> close until I move the mouse pointer to certain area. Similar strange 
> thing happens when I use SNDMSG( MyHandle, BM_CLICK, 0,0).
> How can I get the main form to process my click event from the thread 
> properly?

Are you trying to have your main thread process mesages from another thread? 
Then take a look at  ::AttachThreadInput(...) WinAPI. If not, then please, 
elaborate a bit more. 
Technical Details
Message-ID: <4176f9b5$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!tdsnet-transit!newspeer.tds.net!news-out1.nntp.be!propagator2-sterling!news-in.nuthinbutnews.com!in.nntp.be!caladan.arrakis.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <opsf6zyre9pmxkmr@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,b985a387e90fbabc
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
Reply-To: "Azazello" <snimi_potniki@hotmail.com>
From: "Azazello" <snimi_potniki@hotmail.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <opsf6zyre9pmxkmr@newsgroups.borland.com>
Subject: Re: To Trigger a Button Click on the Main Form
Date: Wed, 20 Oct 2004 16:51:34 -0700
Lines: 12
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-RFC2646: Format=Flowed; Response
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
NNTP-Posting-Host: 142.58.249.61
Message-ID: <4176f9b5$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1098316213 142.58.249.61 (20 Oct 2004 16:50:13 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!tdsnet-transit!newspeer.tds.net!news-out1.nntp.be!propagator2-sterling!news-in.nuthinbutnews.com!in.nntp.be!caladan.arrakis.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail