![]() |
SplitterWnd with few hidden rows and cols? |
Post Reply
|
| Author | |
Jimor Marlow
Groupie
Joined: 03 June 2007 Location: Russian Federation Status: Offline Points: 30 |
Post Options
Thanks(0)
Quote Reply
Topic: SplitterWnd with few hidden rows and cols?Posted: 12 August 2007 at 4:57pm |
|
Hi, CXTSplitterWnd can hide only one row and only one colunm. I need to change panes count, f.e. I've created splitter 4x4 panes, and I want to show 1x1, 2x2, 2x3 etc. panes without unused split bars.
Anybody can help? |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 13 August 2007 at 1:08am |
|
Hello,
You can destroy current splitter and recreate it with number panees you need.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Jimor Marlow
Groupie
Joined: 03 June 2007 Location: Russian Federation Status: Offline Points: 30 |
Post Options
Thanks(0)
Quote Reply
Posted: 13 August 2007 at 1:51am |
|
Yes, I can. But I should destroy ~16 views and recreate them again too. It's little bit slow. And I should care about my realtime process and his interface windows during recreate. Plus, save/load panes states and its contexts... It's possible but expensive...
Yesterday, I derived from CXTPSplitterWnd and add some new feature - to show/hide requried panes wnd and renumber Id's. It's almost working now, I think I'll clear some minor visual bugs, add some helpers, and all be ok. (I hope.) PS. I just had to disable ID_WINDOW_SPLIT message, splitter tried to move some hidden split bars I don't want. |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 13 August 2007 at 2:24am |
|
Hello,
You don't need destroy views. you can reparent them to CMainFrame (pView->SetParent(pMainFrame) and then reparent to new splitter. etc
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
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 |