Article View: borland.public.cppbuilder.nativeapi
Article #3741Re: How do you take away all minimize abilities?
From: Mark Jacobs
Date: Tue, 02 May 2006 11:34
Date: Tue, 02 May 2006 11:34
28 lines
1975 bytes
1975 bytes
"Benjamin Pratt" <bdpratt at mail dot com> wrote in message
news:445243ed$1@newsgroups.borland.com...
> The window's message handler is passed a WM_SYSCOMMAND message when actions
> on the system menu are chosen. You can intercept the SC_MINIMIZE message
> here. Don't let it get passed to the DefWindowProc.
> However savvy users will know that they can press [WindowsKey]-D to minimize
> all windows and show the desktop, regardless of whether the window is allow
> to be minimized or not. I don't know a way around this problem.
What about the obvious Application->OnMinimize event? Here is a simple example
:-
__fastcall TForm1::TForm1(TComponent* Owner)
: TForm(Owner)
{
Application->OnMinimize = AppTryingToMin;
}
void __fastcall TForm1::AppTryingToMin(TObject *Sender)
{
Application->Restore();
}
--
Mark Jacobs
DK Computing
http://www.dkcomputing.co.uk
Technical Details
Message-ID:
<4457433a@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<44512afc$1@newsgroups.borland.com> <44512e00$1@newsgroups.borland.com> <445243ed$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,299e15a2ced7f7a1 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Mark Jacobs" <http://www.jacobsm.com/mjmsg?Borland%20Newsgroup> Newsgroups: borland.public.cppbuilder.nativeapi References: <44512afc$1@newsgroups.borland.com> <44512e00$1@newsgroups.borland.com> <445243ed$1@newsgroups.borland.com> Subject: Re: How do you take away all minimize abilities? Date: Tue, 2 May 2006 12:34:25 +0100 Lines: 30 Organization: DK Computing X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2869 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 X-RFC2646: Format=Flowed; Response NNTP-Posting-Host: 81.144.157.8 Message-ID: <4457433a@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1146569530 81.144.157.8 (2 May 2006 04:32:10 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail