![]() |
MDI Tabs dont refresh when pane collapes |
Post Reply
|
| Author | |
kleckj
Newbie
Joined: 26 July 2005 Status: Offline Points: 7 |
Post Options
Thanks(0)
Quote Reply
Topic: MDI Tabs dont refresh when pane collapesPosted: 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.
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 26 July 2005 at 3:32pm |
|
Can you reproduce it with our sample? Which one?
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
kleckj
Newbie
Joined: 26 July 2005 Status: Offline Points: 7 |
Post Options
Thanks(0)
Quote Reply
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 ![]() ![]() ![]() |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
kleckj
Newbie
Joined: 26 July 2005 Status: Offline Points: 7 |
Post Options
Thanks(0)
Quote Reply
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. ![]() |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
kleckj
Newbie
Joined: 26 July 2005 Status: Offline Points: 7 |
Post Options
Thanks(0)
Quote Reply
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 ![]() |
|
![]() |
|
kleckj
Newbie
Joined: 26 July 2005 Status: Offline Points: 7 |
Post Options
Thanks(0)
Quote Reply
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); |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |