Article View: borland.public.cppbuilder.nativeapi
Article #15892Re: It's a mistery??? WM_SYSCOMMAND & Screen Savers
From: user
Date: Fri, 06 Jun 2003 11:53
Date: Fri, 06 Jun 2003 11:53
32 lines
2282 bytes
2282 bytes
Remy Lebeau (TeamB) wrote: > <user@domain.invalid> wrote in message news:3EDFF4DA.90707@domain.invalid... > > >>The Windows docs say to return 0 from the >>WM_SYSCOMMAND message to indicate >>that it has been handled. > > > In order to do that, the message has to be handled in the WndProc() or > Dispatch() method instead of an OnMessage event handler. > > However, as previously mentioned, using the OnMessage event does work in > this case. It's been tested many times, on many machines. It works. Why > it doesn't for for him specifically, I do not know. > > > Gambit > > > Gambit > > Interesting. I was pretty sure that an application needed to return 0 to indicate that it had handled a WM_SYSCOMMAND/SC_SCREENSAVER message, and thought that the documentation and some sample screen saver code I have supported the idea. If that were true, though, it would imply that this message is sent to the application rather than posted, which you assert is not the case. I'm willing to leave it a mystery, although it might be helpful (to the original poster) if someone were to share their working implementation.
Technical Details
Message-ID:
<3EE080C3.40907@domain.invalid>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3ede7c1b@newsgroups.borland.com> <3EDEA93A.1090309@domain.invalid> <3edeb515$1@newsgroups.borland.com> <3EDFF4DA.90707@domain.invalid> <3edff712$1@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-06 05:13:04 PST Message-ID: <3EE080C3.40907@domain.invalid> Date: Fri, 06 Jun 2003 07:53:39 -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> <3EDEA93A.1090309@domain.invalid> <3edeb515$1@newsgroups.borland.com> <3EDFF4DA.90707@domain.invalid> <3edff712$1@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 1054900445 68.162.138.29 (6 Jun 2003 04:54:05 -0700) Lines: 33 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail