Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - SplitterWnd with few hidden rows and cols?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

SplitterWnd with few hidden rows and cols?

 Post Reply Post Reply
Author
Message
Jimor Marlow View Drop Down
Groupie
Groupie
Avatar

Joined: 03 June 2007
Location: Russian Federation
Status: Offline
Points: 30
Post Options Post Options   Thanks (0) Thanks(0)   Quote Jimor Marlow Quote  Post ReplyReply Direct Link To This Post 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?
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: 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
Back to Top
Jimor Marlow View Drop Down
Groupie
Groupie
Avatar

Joined: 03 June 2007
Location: Russian Federation
Status: Offline
Points: 30
Post Options Post Options   Thanks (0) Thanks(0)   Quote Jimor Marlow Quote  Post ReplyReply Direct Link To This Post 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.
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: 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
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.