🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Windows message hook

#10005
From: Fractal Cat
Date: Fri, 28 May 2004 18:28
26 lines
1954 bytes
"Mark Jacobs" <markj atty critical dotty co dotty uk> wrote in message
news:40b73cc6$1@newsgroups.borland.com...
> "Fractal Cat" <pjb@prime-projects.co.uk> wrote in message
news:40b24ca0@newsgroups.borland.com...
> > How can I intercept the creation of a window and perform my own
processing?
> > I want to know the dimensions of the window that is being created and I
want
> > to do some graphics before the window is displayed.
>
> You need to write an EXE and a DLL that monitor system events and look for
the WM_CREATE (create a window)
> message. I have a program in BCB version 5 that intercepts and records any
event on the system. However, it [snip]

Ok.  I have set up a global Shell Hook that intercepts theWM_CREATE message
where the HWND for that window is available through WParam or LParam.  Now,
when I attempt to get the dimensions of this window this is what I get:

left = 400; top = 300; right 400; bottomn = 300; clearly something is up but
I don't know what.  Can you help?

Regards,thanks

Seymour
Technical Details
Message-ID: <40b784c9$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!controlnews3.google.com!news1.google.com!news.glorb.com!newshosting.com!nx02.iad01.newshosting.com!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <40b24ca0@newsgroups.borland.com> <40b73cc6$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,2c0d2128b33c6af
X-Google-Attributes: gid10cc67,public
From: "Fractal Cat" <pjb@prime-projects.co.uk>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <40b24ca0@newsgroups.borland.com> <40b73cc6$1@newsgroups.borland.com>
Subject: Re: Windows message hook
Date: Fri, 28 May 2004 19:28:28 +0100
Lines: 29
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 217.44.2.44
Message-ID: <40b784c9$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1085768905 217.44.2.44 (28 May 2004 11:28:25 -0700)
Path: arc1-ca.pugleaf.net!controlnews3.google.com!news1.google.com!news.glorb.com!newshosting.com!nx02.iad01.newshosting.com!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail