🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: It's a mistery??? WM_SYSCOMMAND & Screen Savers

#15950
From: user
Date: Thu, 05 Jun 2003 02:21
25 lines
2049 bytes
Mike Collins wrote:
> 
> void __fastcall TMainForm::ProcessMessage(tagMSG &msg, bool &Handled)
> {
>    // Message Processing / Handling switch.
>    switch (msg.message)
>    {
>       case WM_SYSCOMMAND         :  if (msg.wParam == SC_SCREENSAVE)
>                                     {
>                                        Handled = true;
>                                        //handled =
> Config->getGlobalConBit(DISABLE_WIN_SCREEN_SAVER);
>                                     }
>                                     break;
>       default                    :  Handled = false;
>                                     break;
>    }
> }
> 
Doesn't the Handled parameter only tell the VCL whether or not to 
process the message further? (By passing it to the default handler, 
presumably.) Isn't the actual return value for the WM_SYSCOMMAND 
indicated in some member of the "tagMSG" struct? If you're not returning 
0 to the OS, it won't know you are pretending to handle the 
SC_SCREENSAVE message.
Technical Details
Message-ID: <3EDEA93A.1090309@domain.invalid>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news-out.visi.com!petbe.visi.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3ede7c1b@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,e18e111f10ac0959
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-06-04 19:27:40 PST
Message-ID: <3EDEA93A.1090309@domain.invalid>
Date: Wed, 04 Jun 2003 22:21:46 -0400
From:  user@domain.invalid
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: It's a mistery??? WM_SYSCOMMAND & Screen Savers
References: <3ede7c1b@newsgroups.borland.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 68.162.138.29
X-Trace: newsgroups.borland.com 1054779732 68.162.138.29 (4 Jun 2003 19:22:12 -0700)
Lines: 26
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news-out.visi.com!petbe.visi.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail