The MASM Forum Archive 2004 to 2012

Project Support Forums => IDE Development and Support => RadAsm Support Forum => Topic started by: Lobotomy on August 24, 2006, 09:56:49 PM

Title: Webbrowser redraw
Post by: Lobotomy on August 24, 2006, 09:56:49 PM
Hello,

I'm sometimes getting weird redraw probs with WB on heavy sites -- it shows the parent, base window instead of the WB's, sometimes in chunks, until manual show/hide.

Is there a way to get around it? Would a separate thread for WB help? Or maybe an UpdateWindow with 1 sec interval in the WinMain loop?

Title: Re: Webbrowser redraw
Post by: KetilO on August 25, 2006, 06:50:50 AM
Hi

Quote
Or maybe an UpdateWindow with 1 sec interval in the WinMain loop?
This will not help as the handle you get is just to a container.

Quote
Is there a way to get around it? Would a separate thread for WB help?
Maybe.

Is your message loop slow?

KetilO
Title: Re: Webbrowser redraw
Post by: Lobotomy on August 25, 2006, 10:54:25 AM
It sure gets slow on heavy content, but this doesn't always cause the redraw problems. And sometimes these probs occur when the loop is totally fine -- I move the window here and there, but the WB window is not redrawn until I minimize/restore.

This is why i mentioned both threading and some kind of WB window update way.

The other thing is that these problems occur very rarely, and I cannot recreate them when i want, even if I overload cpu.

I'll try threading, what else to do.
Title: Re: Webbrowser redraw
Post by: KetilO on August 25, 2006, 11:00:45 AM
Hi

Setting WS_CLIPCHILDREN and WS_CLIPSIBLINGS on the container might help.

KetilO
Title: Re: Webbrowser redraw
Post by: Lobotomy on August 25, 2006, 12:36:13 PM
Oh, right! Can't test it right now, but, logically, it should solve it.

I lo thank you!