Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / April 2007

Tip: Looking for answers? Try searching our database.

How to avoid component rect cleaning with WM_SETREDRAW message.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
PAF - 19 Apr 2007 13:08 GMT
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 - 19 Apr 2007 14:51 GMT
> Hi,
>
[quoted text clipped - 9 lines]
>
> 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/library/btaacw58(VS.80).aspx

http://msdn2.microsoft.com/zh-cn/library/4we407fw(vs.80).aspx
pvdg42 - 19 Apr 2007 15:23 GMT
> Perhaps the remarks section here:
>
[quoted text clipped - 11 lines]
>
> http://msdn2.microsoft.com/zh-cn/library/4we407fw(vs.80).aspx

Should have said "*which* technology/library/platform...", not "*which*
WM_SETREDRAW"
PAF - 20 Apr 2007 15:01 GMT
> > Perhaps the remarks section here:
>
[quoted text clipped - 14 lines]
> 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.
pvdg42 - 20 Apr 2007 15:21 GMT
> Thanks for your links but it doesn't help me.
>
[quoted text clipped - 3 lines]
>
> 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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.