Article View: borland.public.cppbuilder.nativeapi
Article #12350Re: OnMaximize form event
From: Nitisara das
Date: Fri, 12 Dec 2003 10:25
Date: Fri, 12 Dec 2003 10:25
31 lines
1812 bytes
1812 bytes
Thank you. But it works only if user posts system command (from top left
corner of the window system menu selects "Maximize" command). In the case of
pressing Maximize border icon or double clicking the title of the window it
is not working.
"JD" <nospam@nospam.com> wrote in message
news:3fd95400@newsgroups.borland.com...
>
> "Nitisara das" <nitisara@mail.ru> wrote:
> > How I can create OnMaximize form event?
>
> Override the the inherited WndProc() method:
>
> //--- in the header
> protected: // User declarations
> virtual void __fastcall WndProc(TMessage &Message);
> //--- in the unit
> void __fastcall TForm1::WndProc(TMessage &Message)
> {
> if( Message.Msg == WM_SYSCOMMAND )
> {
> if( Message.wParam == SC_MAXIMIZE )
> {
> // form is about to be maximized
> }
> }
> TForm::WndProc( Message );
> }
>
> ~ JD
>
Technical Details
Message-ID:
<3fd99757@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3fd732d1@newsgroups.borland.com> <3fd95400@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,eb18963745d4727b X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-12-12 02:39:13 PST From: "Nitisara das" <nitisara@mail.ru> Newsgroups: borland.public.cppbuilder.nativeapi References: <3fd732d1@newsgroups.borland.com> <3fd95400@newsgroups.borland.com> Subject: Re: OnMaximize form event Date: Fri, 12 Dec 2003 13:25:39 +0300 Lines: 33 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: 213.243.84.38 Message-ID: <3fd99757@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1071224663 213.243.84.38 (12 Dec 2003 02:24:23 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail