Home All Groups Group Topic Archive Search About

All MDI forms repaint when one is resized

Author
28 Jun 2005 9:47 PM
David
I have been experimenting with the Scribble sample (both in C# and C++/CLI). 
I create two or more child documents/windows and scribble different stuff in
them.

Even if the child windows do not overlap at all (within the MDI parent
frame), if I resize one of the MDI child windows, a Paint event is sent to
all the child windows (even the one whose document/view/client area has not
changed at all).  How do I prevent this?  It seems to cause flicker and a lot
of unnecessary drawing when multiple documents are open.

-David

Author
29 Jun 2005 3:18 AM
Jeffrey Tan[MSFT]
Hi David,

Thanks for your post.

Based on my search, I can only find Scribble sample in VB.net in the
directory below:
C:\Program Files\Microsoft Visual Studio .NET 2003\Vb7\VB
Samples\WinForms-Scribble\Scribble

I am not sure if this is exactly the same sample you used. However, with
this sample, when I opened several child forms, then resize one form, other
forms will not receive any WM_PAINT message(I verify this with SPY++).

I will wait for your further confirm. Thanks

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
Are all your drivers up to date? click for free checkup

Author
29 Jun 2005 1:30 PM
David
Thanks for the reply.  Here's a link to the Scribble example solution in C#:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cssample/html/vcsamScribbleSampleCSharpMDIdrawingApplication.asp

I think we have a better idea of the problem now too.  We have been using
VS2005 beta 2 to experiment.  When we compiled the solution in VS2003
everything worked as expected (no repaint, no flicker).  The problem only
occurs under VS2005b2 perhaps due to a bug in the new .NET 2.0 framework
stuff.  Is there any way to confirm whether this is a known bug and if it
will be addressed?

Thanks for the help. 

Best regards,
David


""Jeffrey Tan[MSFT]"" wrote:

Show quoteHide quote
> Hi David,
>
> Thanks for your post.
>
> Based on my search, I can only find Scribble sample in VB.net in the
> directory below:
> C:\Program Files\Microsoft Visual Studio .NET 2003\Vb7\VB
> Samples\WinForms-Scribble\Scribble
>
> I am not sure if this is exactly the same sample you used. However, with
> this sample, when I opened several child forms, then resize one form, other
> forms will not receive any WM_PAINT message(I verify this with SPY++).
>
> I will wait for your further confirm. Thanks
>
> Best regards,
> Jeffrey Tan
> Microsoft Online Partner Support
> Get Secure! - www.microsoft.com/security
> This posting is provided "as is" with no warranties and confers no rights.
>
>
Author
30 Jun 2005 9:28 AM
Jeffrey Tan[MSFT]
Hi David,

Thanks for your feedback.

Yes, I have tested this on VS.net2005 beta2 and reproduced out this issue.
Then I created a very simple MDI winform application with several MDI child
forms. When resizing one of these forms, other forms will receive WM_PAINT
message(I verify this with SPY++).

I contacted this issue with our product team. I will reply you for any new
update of this issue. Thanks

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
Author
14 Jul 2005 8:23 AM
Jeffrey Tan[MSFT]
Hi David,

Sorry for letting you wait for so long time.

Yes, we have reported this issue to our product team. However, with their
testing, it seems that this problem will go away in latest build of
Whidbey. So this problem should have been fixed in lastest build. Hope this
helps, thanks

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Bookmark and Share