Groups | Blog | Home
all groups > dotnet academic > april 2007 >

dotnet academic : How to avoid component rect cleaning with WM_SETREDRAW message.


PAF
4/19/2007 5:08:16 AM
Hi,

I'm writing a WinForms application in .NET and I have a problem.

I use the WM_SETREDRAW message to avoid flicking in some component
during processes (populating, etc...). But when the message is sended
to the component, the component area is cleaned and then I have a
white box.

How could I only freeze the component in state during my processes
without cleaning ?

Thanks for your help.
pvdg42
4/19/2007 8:51:55 AM

[quoted text, click to view]

Perhaps the remarks section here:

http://msdn2.microsoft.com/en-us/library/aa923232.aspx

will shed some light, and as you don't specify what type of component, have
you seen this?

http://support.microsoft.com/kb/130611

It would also help if were to tell us *which* WM_SETREDRAW you are using, as
beyond CE, we have MFC and ATL:

http://msdn2.microsoft.com/en-us/library/btaacw58(VS.80).aspx

http://msdn2.microsoft.com/zh-cn/library/4we407fw(vs.80).aspx

pvdg42
4/19/2007 9:23:53 AM

[quoted text, click to view]
Should have said "*which* technology/library/platform...", not "*which*
WM_SETREDRAW"

PAF
4/20/2007 7:01:50 AM
[quoted text, click to view]

Thanks for your links but it doesn't help me.

I'm in .NET 2 and this problem appends only on containers components
like TableLayoutPanel. I think that could be linked to this kind of
components, is that possible ?

Thanks.
pvdg42
4/20/2007 9:21:30 AM

[quoted text, click to view]
Really? One of the links addressed which component types are applicable.

For additional discussion, I suggest you post in the .NET C++ group:

microsoft.public.dotnet.languages.vc

AddThis Social Bookmark Button