Article View: borland.public.cppbuilder.nativeapi
Article #12346Re: OnMaximize form event
From: JD
Date: Fri, 12 Dec 2003 04:37
Date: Fri, 12 Dec 2003 04:37
23 lines
1482 bytes
1482 bytes
"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:
<3fd95400@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-05!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3fd732d1@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-11 21:39:01 PST From: "JD" <nospam@nospam.com> Sender: "JD" <nospam@nospam.com> Reply-To: "JD" <nospam@nospam.com> Subject: Re: OnMaximize form event Newsgroups: borland.public.cppbuilder.nativeapi X-User-Info: 172.154.236.126 References: <3fd732d1@newsgroups.borland.com> NNTP-Posting-Host: 207.105.83.66 Message-ID: <3fd95400@newsgroups.borland.com> Date: 11 Dec 2003 21:37:04 -0700 X-Trace: newsgroups.borland.com 1071207424 207.105.83.66 (11 Dec 2003 21:37:04 -0700) Lines: 24 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-05!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail