Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - MDI Tabs don’t refresh when pane collapes
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

MDI Tabs don’t refresh when pane collapes

 Post Reply Post Reply
Author
Message
kleckj View Drop Down
Newbie
Newbie


Joined: 26 July 2005
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote kleckj Quote  Post ReplyReply Direct Link To This Post Topic: MDI Tabs don’t refresh when pane collapes
    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.


Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 26 July 2005 at 3:32pm
Can you reproduce it with our sample? Which one?
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
kleckj View Drop Down
Newbie
Newbie


Joined: 26 July 2005
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote kleckj Quote  Post ReplyReply Direct Link To This Post 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




Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
kleckj View Drop Down
Newbie
Newbie


Joined: 26 July 2005
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote kleckj Quote  Post ReplyReply Direct Link To This Post 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.



Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
kleckj View Drop Down
Newbie
Newbie


Joined: 26 July 2005
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote kleckj Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
kleckj View Drop Down
Newbie
Newbie


Joined: 26 July 2005
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote kleckj Quote  Post ReplyReply Direct Link To This Post 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);           

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.063 seconds.