Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » Bug when switch maximized CMDIChildWnd Collapse All
Subject Author Date
Ulrich Heinicke Feb 3, 2009 - 1:14 PM

Hi,


there i a bug when your are between maximized CMDIChildWnd. I want to have the MDIChilds always be maximzed. So i have remove WS_MINIMIZEBOX and WS_MAXIMIZEDBOX from the style and add WS_MAXIMIZE. When i add a new document it will be maximized. But when i switch between two windows, all maximized windows will be now overlapped. I reproduced the bug with your sample MDIDOCVIEW. The changes i make:



BOOL CChildFrame::PreCreateWindow(CREATESTRUCT& cs)
{
    if( ! CExtNCW < CMDIChildWnd > :: PreCreateWindow( cs ) )
        return FALSE;
    cs.style =
        WS_CHILD | WS_VISIBLE
            | WS_MAXIMIZE | WS_CAPTION | WS_SYSMENU
            | FWS_ADDTOTITLE | WS_THICKFRAME
//            | WS_MINIMIZEBOX | WS_MAXIMIZEBOX
            | WS_CLIPCHILDREN | WS_CLIPSIBLINGS
            ;
    cs.dwExStyle &= ~(WS_EX_CLIENTEDGE|WS_EX_STATICEDGE|WS_EX_DLGMODALFRAME);
    return TRUE;
}

Why is the style of the windows changed? Please send me a patch to resolve the problem.


Thanks

Technical Support Jul 6, 2009 - 1:25 PM

The way of creating always maximized MDI child frames described in this forum thread does not work in MFC only applications too. We can make such approach working only after complete recoding of MDI interface. We would like to ask you to take a look at the ProfStudio sample application. It implements the always maximized MDI child frames and you can switch to classic MDI and back at run-time.


Mantra Feb 10, 2009 - 12:08 AM

Yeah would be nice.. I face the same Problem.. when all childs are maximised and i switch to another child it flickers.. 



Let me know when the bugfix is out.



Thanks

Technical Support Feb 5, 2009 - 1:17 PM

We just want to notify you that we reproduced this problem and are working on it. The fix will be available soon.

Ulrich Heinicke Jul 5, 2009 - 1:48 PM

Do you have fix this problem ?