🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

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

#15949
From: Mike Collins
Date: Thu, 05 Jun 2003 01:56
26 lines
2113 bytes
Remy, I'd love to say that that was the problem, but, alas no joy - still
the screen saver kicks in.  I've read and read and read the help file but I
can't see whats going wrong here.  I had a look at the article that you
pointed out (i'd already read the one on closing NT screen savers) but I
need to block the screen saver whilst my application is running.  Just got a
friend to test the TApplicationEvent VCL version, without the bitwise AND,
running on an XP box and it stopped the screen saver - so who knows!

Any more suggestions,

Thanks anyways for your help

Mike C

"Remy Lebeau (TeamB)" <gambit47@yahoo.com> wrote in message
news:3ede97d2$1@newsgroups.borland.com...
>
> "Mike Collins" <mikec@kr8.co.uk> wrote in message
> news:3ede7c1b@newsgroups.borland.com...
>
> >       if (msg.wParam == SC_SCREENSAVE)
>
> You should be masking off the wParam with 0xFFF0 before you compare the
> value.  As per MSDN documentation:
>
>     "In WM_SYSCOMMAND messages, the four low-order bits of the wParam
Technical Details
Message-ID: <3edea22f@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <3ede7c1b@newsgroups.borland.com> <3ede97d2$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-04 18:56:25 PST
Reply-To: "Mike Collins" <mikec@kr8.co.uk>
From: "Mike Collins" <mikec@kr8.co.uk>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3ede7c1b@newsgroups.borland.com> <3ede97d2$1@newsgroups.borland.com>
Subject: Re: It's a mistery??? WM_SYSCOMMAND & Screen Savers
Date: Thu, 5 Jun 2003 02:56:21 +0100
Lines: 28
Organization: kr8
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 81.2.78.34
Message-ID: <3edea22f@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1054777903 81.2.78.34 (4 Jun 2003 18:51:43 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail