🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Handle of MessageBox

#3575
From: Dennis Jones
Date: Wed, 31 May 2006 01:44
21 lines
1653 bytes
"Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message
news:447cee05$1@newsgroups.borland.com...

> From where exactly?  MessageBox() shows a modal dialog, so you can't close
> it from the context of the thread that is displaying it (without some
> low-level hooks, that is).

Right.  In my case, the process is kicked off by a TTimer::OnTimer event
handler on the application's main form and uses PostMessage calls to close
the windows in question.

The rest of your message pretty much falls in line with what I was
expecting.  Fortunately, Ed's suggestion is a better (and simpler!)
alternative to implementing a complex solution that may or may not even
work!  By creating and using a custom message box class, the solution
becomes trivial.

Thanks,

- Dennis
Technical Details
Message-ID: <447cf4e6$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news3.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <447ce85d$1@newsgroups.borland.com> <447cee05$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,21899a732622f4b0
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Dennis Jones" <nospam@nospam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <447ce85d$1@newsgroups.borland.com> <447cee05$1@newsgroups.borland.com>
Subject: Re: Handle of MessageBox
Date: Tue, 30 May 2006 18:44:08 -0700
Lines: 23
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: 71.245.109.58
Message-ID: <447cf4e6$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1149039846 71.245.109.58 (30 May 2006 18:44:06 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news3.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail