Article View: borland.public.cppbuilder.nativeapi
Article #4717Re: Code short circuit
From: Bruce Salzman
Date: Wed, 07 Dec 2005 20:53
Date: Wed, 07 Dec 2005 20:53
37 lines
2174 bytes
2174 bytes
"Thomas Maeder [TeamB]" <maeder@glue.ch> wrote in message
news:m2pso8u1sr.fsf@glue.ch...
>" 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.
I expected it to return on the SC_... messages without calling the
inherited TDecoratedMDIFrame::EvSysCommand()
method. BCB6 doesn't generate any code for the "return" case and
always calls the inherited method. I still can't see any reason for
it.
--
Bruce
Technical Details
Message-ID:
<43974bab$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!meganewsservers.com!feeder2.on.meganewsservers.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<43961a6f@newsgroups.borland.com> <m28xuxuxcx.fsf@glue.ch> <4396f0a8@newsgroups.borland.com> <m2pso8u1sr.fsf@glue.ch>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,c4f5899a764a1e0 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: " Bruce Salzman" <bruce@nospam.org> Newsgroups: borland.public.cppbuilder.nativeapi References: <43961a6f@newsgroups.borland.com> <m28xuxuxcx.fsf@glue.ch> <4396f0a8@newsgroups.borland.com> <m2pso8u1sr.fsf@glue.ch> Subject: Re: Code short circuit Date: Wed, 7 Dec 2005 14:53:58 -0600 Lines: 40 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2670 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 24.94.228.231 Message-ID: <43974bab$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1133988779 24.94.228.231 (7 Dec 2005 12:52:59 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!meganewsservers.com!feeder2.on.meganewsservers.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail