🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

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

#15951
From: Remy Lebeau (TeamB)
Date: Thu, 05 Jun 2003 03:01
26 lines
2097 bytes
<user@domain.invalid> wrote in message
news:3EDEA93A.1090309@domain.invalid...

> Doesn't the Handled parameter only tell the VCL
> whether or not to process the message further?

Correct.

> Isn't the actual return value for the
> WM_SYSCOMMAND indicated in
> some member of the "tagMSG" struct?

No.  MSG (tagMSG) is not the same as TMessage, which does have a Result
member.  Messages processed by the OnMessage event handler can't return a
result value back for the message.  Which is not a bad thing considering
that the OnMessage event is for processing messages posted to the main
message queue, which means they were posted with PostMessage() and thus
can't return any value anyway.  If you're going to return a value for a
message, then the message has to be processed within the context of the
form's Dispatch() or WndProc() methods, which are called by the form's
underlying window procedure in response to messages sent via SendMessage(),
not PostMessage().


Gambit
Technical Details
Message-ID: <3edeb515$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!64.152.100.70.MISMATCH!sjc70.webusenet.com!news.webusenet.com!feedwest.aleron.net!aleron.net!news.linkpendium.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <3ede7c1b@newsgroups.borland.com> <3EDEA93A.1090309@domain.invalid>

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 20:15:54 PST
From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3ede7c1b@newsgroups.borland.com> <3EDEA93A.1090309@domain.invalid>
Subject: Re: It's a mistery??? WM_SYSCOMMAND & Screen Savers
Date: Wed, 4 Jun 2003 20:01:02 -0700
Lines: 28
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: 207.175.226.26
Message-ID: <3edeb515$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1054782741 207.175.226.26 (4 Jun 2003 20:12:21 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!64.152.100.70.MISMATCH!sjc70.webusenet.com!news.webusenet.com!feedwest.aleron.net!aleron.net!news.linkpendium.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail