Re: repainting all windows in rectangle

new topic     » goto parent     » topic index » view thread      » older message » newer message

On Tue, 7 Nov 2000 13:59:11 +0100, <tone.skoda at SIOL.NET> wrote:

>Window doesn't neccessarey need to be child of my progam, it can be any
>window in the system. So i don't know how can i get onPaint for a window
>from another program.
>
>
>>
>> -- I hope this helps (and I hope I didn't miss your point)
>> -- See my RGBview demo in Wolf's tutorial for a simple example
>> -- Brian
>
>
>I was thinking of doing it like this:
>In loop I would get handle of every Window that is in rectangle, with some
>WindowFromPoint() function, if it exists. Then i would send WM_PAINT
>message to this window.
>The problem is that i can't get those windows, it's complicated. I could
>get window for every point in rectangle, that would work, but it would be
>very slow.
>
>The function GetWindowHandlesInRect(sequence rect) would be equaly good,
>and it's equaly difficult to write.
>
>This would also work: When i want to repint windows in rect, I would show
>and hide a  temporary popup window, but it wouldn't look too good.

I guess I'm confused...  why should you need to repaint windows that are
not your own?  (You shouldn't have to worry about repainting windows that
are not your own, unless you are writing your own OS or something.)

Can you give me an example of why you need to do this?

-- Brian

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu