BCGSoft Forums
BCGSoft Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
Save Password
Forgot your Password?

 All Forums
 BCGSuite for MFC
 BCGSuite for MFC
 Activating MDI child repaints all MDI children
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  


2 Posts

Posted - 10/21/2019 :  1:41:35 PM  Show Profile  Visit Tony's Homepage  Reply with Quote
I am using version 29.0 with Visual Studio 2015 compiler.

When activating MDI Child frame window via mouse click one would expect that only two child windows get repainted - previously active MDI child, which becomes inactive, and a newly active one.

However, in my case I see that all MDI children get repainted, including those whose activation state hasn't changed. Beside being questionable on the general grounds, when you have a good number of MDI children displayed this causes undesirable effects/delays in painting and working with newly active window as one has to wait for everything else to repaint.

I analysed the code and concluded the following:

The application I am working with is OLE Container

Specifically for OLE Container, change in activation state invokes also the function globalUtils.ForceAdjustLayout

This function will cause immediate and full redraw of all the children.

Since the original MFC code, even in the case of OLE Container application, has no such behavior I am wondering why was this introduced and is there a way to avoid or lessen pretty bad (in my case) effect of redrawing all MDI children as user clicks around activating a single windows.


4208 Posts

Posted - 10/22/2019 :  05:11:34 AM  Show Profile  Visit Support's Homepage  Reply with Quote

Please take a look at the forum rules:

3. If the problem cannot be reproduced in our examples/samples, please open a new support ticket ( and attach your sample where we can see the problem.

Best regards,

BCGSoft Technical Support
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To:
BCGSoft Forums © Copyright (c) 1998-2022 BCGSoft Co Ltd Go To Top Of Page
Snitz Forums 2000