🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: System Menu

#7533
From: Vladimir Stefanovic
Date: Fri, 28 Jan 2005 17:34
33 lines
1878 bytes
Do you also checked the case when double-clicking on
the window caption bar which forces the window to
maximize/restor and bypasses the WM_SYSCOMMAND.

I mean, something like this:

   switch ( Msg.Msg )
   {
      case   WM_NCLBUTTONDBLCLK:
         if ( Application->MainForm->WindowState != wsMaximized )
            SetToBeMaximized();
         else
            SetToBeNormal();



Best regards,
Vladimir Stefanovic
"JD" <nospam@nospam.com> wrote in message 
news:41fa751e$1@newsgroups.borland.com...
>
> Alan Bellingham <alanb@episys.com> wrote:
>>"JD" <nospam@nospam.com> wrote:
>>
>>>I found the problem. The WM_SYSCOMMAND *is* being sent but
>>>it's going to the TApplication - not the main form.
>>
>>Are you checking WM_SIZE?
>
> Good idea ... more than one way to skin a cat!!
>
> ~ JD
> 
Technical Details
Message-ID: <41fa77a3$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <41f97c3f@newsgroups.borland.com> <2h0jv05tg5hduj30gtpp7vpnq9ln9dq6uc@4ax.com> <41f98ade$1@newsgroups.borland.com> <kcnkv05l89aikntm230emr2h6m94iq50ok@4ax.com> <41fa751e$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,a476d17554b7e065
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Vladimir Stefanovic" <antivari@po.sbb.co.yu>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <41f97c3f@newsgroups.borland.com> <2h0jv05tg5hduj30gtpp7vpnq9ln9dq6uc@4ax.com> <41f98ade$1@newsgroups.borland.com> <kcnkv05l89aikntm230emr2h6m94iq50ok@4ax.com> <41fa751e$1@newsgroups.borland.com>
Subject: Re: System Menu
Date: Fri, 28 Jan 2005 18:34:41 +0100
Lines: 35
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 82.117.212.65
Message-ID: <41fa77a3$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1106933667 82.117.212.65 (28 Jan 2005 09:34:27 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail