🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: WinEvents - what is equivalent to WM_SYSCOMMAND.SC_RESTORE?

#598
From: Anders Johansen
Date: Mon, 03 Mar 2008 20:33
31 lines
2221 bytes
"Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> wrote:
>Are you referring to SetWinEventHook()?

Yes.

>> Unfortunately, I am stumped figuring out which event constant
>> is equivalent to the WM_SYSCOMMAND.SC_RESTORE
>> message.
>
>Near as I can tell, there isn't one mentioned in the documentation.  Have 
>you tried simply logging the actual values that your event callback receives 
>while a window is being restored?

Oh, you mean doing actual work? No, for some reason that did not occur to me
<kicks myself>. :D I guess I could throw together a neat little program that checked 
just that in about 15 minutes. Will do tomorrow.

Thank you for the suggestion. It's funny how one so often forgets to take the 
obvious course...

Somewhat relates to the topic: 
When using these events and LL hooks, I suppose the smart thing to do is to 
decouple the event processing from the actual triggering in the hooks, so as
not to slow down the entire system. What I did was to translate the events into
custom named Windows messages and posting them to an invisible window with
a custom winproc, there to be translated into "ordinary" (i.e. C++) events. This
should allow my processing to fall behind, while the events build up in my
applications message queue, right? Or is this totally misguided?

Anders
Technical Details
Message-ID: <47cc6eb3$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <47c966f6$1@newsgroups.borland.com> <47cc349a$3@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,1525e6abf346c819
X-Google-Attributes: gid10cc67,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Anders Johansen" <home@dduck.dk>
Sender: "Anders Johansen" <home@dduck.dk>
Reply-To: "Anders Johansen" <home@dduck.dk>
Subject: Re: WinEvents - what is equivalent to WM_SYSCOMMAND.SC_RESTORE?
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 90.184.163.204     
References: <47c966f6$1@newsgroups.borland.com> <47cc349a$3@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.66
Message-ID: <47cc6eb3$1@newsgroups.borland.com>
Date: 3 Mar 2008 13:33:39 -0700
X-Trace: newsgroups.borland.com 1204580019 207.105.83.66 (3 Mar 2008 13:33:39 -0700)
Lines: 31
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail