🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Windows message hook

#10065
From: Eugene Mayevski [SecureBlackbox]
Date: Mon, 24 May 2004 21:15
15 lines
1604 bytes
Fractal Cat wrote:

> 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 will need to set several hooks (CallWndProc, GetMessage, maybe CBT, 
Shell) and track several windows. You can start from Shell and handling 
WindowCreated and WindowReplaced codes. Probably this would be enough 
for you.

Eugene Mayevski
EldoS Corp., CTO
Networking and security solutions, custom development services
http://www.eldos.com
Technical Details
Message-ID: <40b265fa$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!controlnews3.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <40b24ca0@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
Date: Tue, 25 May 2004 00:15:32 +0300
From: "Eugene Mayevski [SecureBlackbox]" <mayevski@eldos.org>
Organization: EldoS Corporation
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624
X-Accept-Language: en-us, ru, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Windows message hook
References: <40b24ca0@newsgroups.borland.com>
In-Reply-To: <40b24ca0@newsgroups.borland.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 82.144.222.199
Message-ID: <40b265fa$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1085433338 82.144.222.199 (24 May 2004 14:15:38 -0700)
Lines: 16
Path: arc1-ca.pugleaf.net!controlnews3.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail