🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: find out when a window is changing its pos or size

#4723
From: Jeff Kish
Date: Wed, 14 Dec 2005 19:12
40 lines
2249 bytes
On Wed, 14 Dec 2005 13:04:51 -0500, "Sam S. Firouz"
<sfirouz@Hotmail.com> wrote:

>to detect change of window pos you have to trap WM_MOVE message.
>for size you can use the unresize event.
>for minimize you have to use the Application's OnMinimize and OnRestore 
>event.
>
>sam
>
>
>
>"Jeff Kish" <jeff.kish@mro.com> wrote in message 
>news:86d0q1puc7faipt9t10s9d4dd1vot4vfki@4ax.com...
>>I need to know if it is possible to have windows tell me (register my
>> interest somehow) in when a window is changing its size or pos, being
>> min or maxed.
>>
>> Is there an api call or something I can do from within a dll? I'm
>> trying to figure out a way to keep a form filling up exactly the space
>> in an arbitrary window selected by the calling non borland
>> application.
>>
>> thanks
>> Jeff Kish 
>
I kind of knew that.
But I was hoping the code in the dll could somehow register interest
in WM_MOVE/WM_SIZE messages for another window, and whenever that
window changed positions, the code in the dll would be notified so it
could take some action.

I.E. Even if I did not control the calling code. I can, certainly,
tell the 'user' that they need to pass on Message receipts, but I was
wondering if I could 'automagically' do that.



Thanks
Jeff Kish
Technical Details
Message-ID: <ugr0q1d4nll9lo0p84f895juk4uldmacrt@4ax.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!proxad.net!194.117.148.138.MISMATCH!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <86d0q1puc7faipt9t10s9d4dd1vot4vfki@4ax.com> <43a05eac@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,e334b2c316ca4f3b
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Jeff Kish <jeff.kish@mro.com>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: find out when a window is changing its pos or size
Date: Wed, 14 Dec 2005 14:12:44 -0500
Message-ID: <ugr0q1d4nll9lo0p84f895juk4uldmacrt@4ax.com>
References: <86d0q1puc7faipt9t10s9d4dd1vot4vfki@4ax.com> <43a05eac@newsgroups.borland.com>
X-Newsreader: Forte Agent 3.1/32.783
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 12.106.157.130
X-Trace: newsgroups.borland.com 1134587487 12.106.157.130 (14 Dec 2005 11:11:27 -0700)
Lines: 40
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!proxad.net!194.117.148.138.MISMATCH!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail