🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Code short circuit

#4716
From: Thomas Maeder [TeamB]
Date: Wed, 07 Dec 2005 19:47
25 lines
1832 bytes
" Bruce Salzman" <bruce@nospam.org> writes:

> void TMyMDIFrame::EvSysCommand(uint cmdtype, TPoint& p)
> {
>       // "Eat" these system commands to disable maximizing,
>      // minimizing, and sizing functionality.
>         uint cmd = cmdtype & 0xFFF0;
>         switch (cmd)
>         {
>             case SC_MAXIMIZE:
>             case SC_RESTORE:
>             case SC_MINIMIZE:
>             case SC_MOVE:
>             case SC_SIZE:
>                  return;
>             default:
>                  break;
>         }
>     }
>     TDecoratedMDIFrame::EvSysCommand(cmdtype, p);
> }

Still:

How do you expect the function to behave and how does it effectively.
Technical Details
Message-ID: <m2pso8u1sr.fsf@glue.ch>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!logbridge.uoregon.edu!xmission!news-out.superfeed.net!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <43961a6f@newsgroups.borland.com> <m28xuxuxcx.fsf@glue.ch> <4396f0a8@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,c4f5899a764a1e0
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Code short circuit
References: <43961a6f@newsgroups.borland.com> <m28xuxuxcx.fsf@glue.ch>
 <4396f0a8@newsgroups.borland.com>
From: maeder@glue.ch (Thomas Maeder [TeamB])
Organization: TeamB
X-Face: ":yn4zt^A_dn>6~{YJmu^B\'4w)e:apPM\VC=Dvf&*tASxX9|BYczkFd$xr.$vNSZ[3Uobr p]c4\+\l){!WQI.$]veP({HLd;CDYH?iN
Date: Wed, 07 Dec 2005 20:47:48 +0100
Message-ID: <m2pso8u1sr.fsf@glue.ch>
User-Agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Jumbo Shrimp, linux)
Cancel-Lock: sha1:j5w5dD10rlQg8Hl0XTdvswxjUpI=
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
NNTP-Posting-Host: 84.73.158.225
X-Trace: newsgroups.borland.com 1133984808 84.73.158.225 (7 Dec 2005 11:46:48 -0700)
Lines: 25
X-Authenticated-User: tmaeder
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!logbridge.uoregon.edu!xmission!news-out.superfeed.net!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail