🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Spying WM_QUIT Msgs

#11713
From: KL Chin
Date: Tue, 20 Jan 2004 05:55
47 lines
2526 bytes
Hi Remy,

> > 2).-Can I intercept a "shut down" or "restart" message to process
> > some code before my app is closed?
>
> Just use your form's OnClose or OnCloseQuery event for that.

I also looking for the same command for shutdown,

In my opinion just base OnClose or OnCloseQuery will be not sufficient,
for example, if the application do not allow any user to close the
application
by press the Close button or Alt+F4, but it allow when pressing shutdown or
logoff.

In this case how to indentify the right command source?

Regards
KL Chin

"Remy Lebeau (TeamB)" <gambit47.no.spam@no.spam.yahoo.com> wrote in message
news:400c8ba6$1@newsgroups.borland.com...
>
> "Rodrigo" <rmorteo@eudoramail.com> wrote in message
> news:400c4e89@newsgroups.borland.com...
>
> > 1).-How difficult will it be to sincronize all threads to update a
> > single GUI Object (TreeView) so the user is informed about
> > the apps status?
>
> Not too hard at all.  If you use TThread, then simply call its
Synchronize()
> method when needed, and inside the synced method you can do anything you
> want with the TreeView.  When you start a thread, you should pass it some
> information about the particular TreeNode that it is going to be updating
so
> that it can then do so directly.
>
> > 2).-Can I intercept a "shut down" or "restart" message to process
> > some code before my app is closed?
>
> Just use your form's OnClose or OnCloseQuery event for that.
>
>
> Gambit
>
>
Technical Details
Message-ID: <400cc207@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <400c14ed@newsgroups.borland.com> <400c4532$1@newsgroups.borland.com> <400c4e89@newsgroups.borland.com> <400c8ba6$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,43d7763b0e019d62
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2004-01-19 22:09:23 PST
From: "KL Chin" <klchin@1asiarnd.com.my>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <400c14ed@newsgroups.borland.com> <400c4532$1@newsgroups.borland.com> <400c4e89@newsgroups.borland.com> <400c8ba6$1@newsgroups.borland.com>
Subject: Re: Spying WM_QUIT Msgs
Date: Tue, 20 Jan 2004 13:55:21 +0800
Lines: 49
Organization: CIE Corporation
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 219.93.184.30
Message-ID: <400cc207@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1074577927 219.93.184.30 (19 Jan 2004 21:52:07 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail