Article View: borland.public.cppbuilder.nativeapi
Article #9840Overriding the Close (x) button
From: Mortz
Date: Thu, 10 Jun 2004 20:35
Date: Thu, 10 Jun 2004 20:35
15 lines
1385 bytes
1385 bytes
Hi...
I would like my application to minimize in the system tray instead of
Closing when the user press the close ("X") button in the top right corner
of the window (jus as MSN Messenger window does).
I do provide a ToolBar button and a MenuItem that call the "Close" method in
the Main Form and I have implemented some cleaning code in the FormClose
event, so how can I "detect" when the user clicks the "X" button in order to
minimize the app instead of closing it...?
Any help will be greatly appreciated...
My best regards
<MortZ>.
Technical Details
Message-ID:
<40c8c4de@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,9fc7f58a5baafc09,start X-Google-Attributes: gid10cc67,public Reply-To: "Mortz" <rmorteo@hotmail.com> From: "Mortz" <rmorteo@hotmail.com> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Overriding the Close (x) button Date: Thu, 10 Jun 2004 13:35:18 -0700 Lines: 17 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 200.38.16.98 Message-ID: <40c8c4de@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1086899422 200.38.16.98 (10 Jun 2004 13:30:22 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail