Print Page | Close Window

MDI Tabs don’t refresh when pane collapes

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=2641
Printed Date: 08 November 2025 at 9:02pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: MDI Tabs don’t refresh when pane collapes
Posted By: kleckj
Subject: MDI Tabs don’t refresh when pane collapes
Date Posted: 26 July 2005 at 3:02pm
When a pane collapes to the left the MDI tabs stay hidden or don't refresh.  Click on the pane tab and the mdi tabs reappear.  Just started looking into what messages the click on the pane does to cause the mdi tabs to reappear.





Replies:
Posted By: Oleg
Date Posted: 26 July 2005 at 3:32pm
Can you reproduce it with our sample? Which one?

-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: kleckj
Date Posted: 27 July 2005 at 4:20am
Oleg,
  I used XtremeToolkitProv9.60  app wizard and selected MDI tabbed interface and the tabs stay visible. I am using a CXTPTabControl in a view which in turn creates an editcontrol. Wonder if the paint message is not bubbling up from the view to the MDI tabs frame? When the MDI tabs are not visible the view tabs are closer to the top of the frame.  When the MDI tabs are made visible by flolating over a pane tab the MDI tabs push down the view tabs ie rearranges all the tabs.
The first image shows both MDI and View tabs displayed
The second show the MDI tabs not redisplaying when I pin the pane.
The third shows the MDI tabs reappearing and rearranging all the tabs when I click on the pane tab






Posted By: Oleg
Date Posted: 27 July 2005 at 10:45am
May be you can attach this project. I can't reproduce the problem.

-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: kleckj
Date Posted: 27 July 2005 at 10:13pm
Appears the tabview is stepping on the frame.    
In my view create I first create the tabview
    m_wndTabControl.Create(WS_CHILD|WS_VIS IBLE|WS_CLIPCHILDREN|WS_CLIPSIBLINGS, CRect(0,0, 0,0), this, IDC_TABCONTROL);

Next on the size event
I move the tabcontrol
 CView::OnSize(nType, cx, cy);

    if (m_wndTabControl.GetSafeHwnd())
    {
        m_wndTabControl.MoveWindow(0, 10, cx, cy);
        //m_wndTabControl.MoveWindow(0, 0,0,0);
    }

Need to coordinate the rectangles sizes.
This image below works correctly but the tabview needs to be move correctly.
Hey solved this myself.  I like that!!!

I need to get the rect from the mainframe and adjust correctly??
Any suggestions. Will evently use trial and error to get the right adjustments.





Posted By: Oleg
Date Posted: 27 July 2005 at 11:47pm

You right\. You need move tabcontrol (as any other window) in Size event

m_wndTabControl.MoveWindow(0, 0, cx, cy);

 



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: kleckj
Date Posted: 08 August 2005 at 10:56pm
I did the MoveWindow inside the view::onsize as above but that is not the problem.  When any pane has it's  "AutoHide" button clicked my tabed::view gets 2 onsize messages.  The first has its client 0,0 correctly adjusted to show the MDITabs.  But the second view::onsize has its 0,0 higher which allows the above m_wndTabControl.MoveWindow(0, 0, cx, cy) to step on the TABS. 
Repeat my tabview gets 2 onsize messages from the "AutoHide" on a pane.

How do i prevent the second onsize.  Or how do I set the 0,0 back to a relative 0,0?

john


Posted By: kleckj
Date Posted: 11 August 2005 at 11:14pm
Finally got the answer
m_MTIClientWnd.Attach(this,TRUE);  
I had this set to TRUE at first.

Since I wasn't doing much to this class except this attach call I figured I would see what would happen if I changed the value.

Well guess what?  The tabs all appear correctly.



    m_MTIClientWnd.Attach(this,FALSE);           




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net