HighTechTalks DotNet Forums  

How to avoid component rect cleaning with WM_SETREDRAW message.

Dotnet Academic General Discussions microsoft.public.dotnet.academic


Discuss How to avoid component rect cleaning with WM_SETREDRAW message. in the Dotnet Academic General Discussions forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
PAF
 
Posts: n/a

Default How to avoid component rect cleaning with WM_SETREDRAW message. - 04-19-2007 , 08:08 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.


Reply With Quote
  #2  
Old   
pvdg42
 
Posts: n/a

Default Re: How to avoid component rect cleaning with WM_SETREDRAW message. - 04-19-2007 , 09:51 AM







"PAF" <pascal.fluck (AT) pfcomputing (DOT) ch> wrote

Quote:
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.

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/lib...58(VS.80).aspx

http://msdn2.microsoft.com/zh-cn/lib...fw(vs.80).aspx




Reply With Quote
  #3  
Old   
pvdg42
 
Posts: n/a

Default Re: How to avoid component rect cleaning with WM_SETREDRAW message. - 04-19-2007 , 10:23 AM




"pvdg42" <pvdg42 (AT) newsgroups (DOT) nospam> wrote

Quote:

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/lib...58(VS.80).aspx

http://msdn2.microsoft.com/zh-cn/lib...fw(vs.80).aspx

Should have said "*which* technology/library/platform...", not "*which*
WM_SETREDRAW"




Reply With Quote
  #4  
Old   
PAF
 
Posts: n/a

Default Re: How to avoid component rect cleaning with WM_SETREDRAW message. - 04-20-2007 , 10:01 AM



On 19 avr, 16:23, "pvdg42" <pvd... (AT) newsgroups (DOT) nospam> wrote:
Quote:
"pvdg42" <pvd... (AT) newsgroups (DOT) nospam> wrote in message

news:uFi0SoogHHA.4980 (AT) TK2MSFTNGP02 (DOT) phx.gbl...



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/lib...58(VS.80).aspx

http://msdn2.microsoft.com/zh-cn/lib...fw(vs.80).aspx

Should have said "*which* technology/library/platform...", not "*which*
WM_SETREDRAW"
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.



Reply With Quote
  #5  
Old   
pvdg42
 
Posts: n/a

Default Re: How to avoid component rect cleaning with WM_SETREDRAW message. - 04-20-2007 , 10:21 AM




"PAF" <pascal.fluck (AT) pfcomputing (DOT) ch> wrote

Quote:
On 19 avr, 16:23, "pvdg42" <pvd... (AT) newsgroups (DOT) nospam> wrote:

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.

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




Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.