Print Page | Close Window

Switching between standard and tabbed MDI surface

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=5798
Printed Date: 12 November 2025 at 12:54am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Switching between standard and tabbed MDI surface
Posted By: mgampi
Subject: Switching between standard and tabbed MDI surface
Date Posted: 14 December 2006 at 2:42pm
Hi;
 
Does anyone know what to do to let the user switch between tabbed and standard MDI representation?
Switching the first time from standard to tabbed interface is simple: just call CXTPTabClientWnd::Attach().
But trying to switch back is not obvious. I know that a few WS_xxx styles have to be set. But then...????
All I get is a messy app GUI.
 
Any help is welcome
 
Martin



Replies:
Posted By: mgampi
Date Posted: 17 December 2006 at 6:50am
Hi;
 
Has no one ever solved this? Any hints are really welcome!!
 
Martin


Posted By: garylyb
Date Posted: 17 December 2006 at 8:44am
 
Here's my code:
 
 
void CMainFrame::OnOutertabsToggletabson(){

bShowTabs = bShowTabs ^ 1;

m_MTIClientWnd.ShowWorkspace(bShowTabs);

}

These are 2 mainframe variables:
 
BOOL bShowTabs;
CXTPTabClientWnd m_MTIClientWnd;
 
 


Posted By: mgampi
Date Posted: 19 December 2006 at 2:57am
Originally posted by garylyb garylyb wrote:

 
Here's my code:
 
 
void CMainFrame::OnOutertabsToggletabson(){

bShowTabs = bShowTabs ^ 1;

m_MTIClientWnd.ShowWorkspace(bShowTabs);

}

These are 2 mainframe variables:
 
BOOL bShowTabs;
CXTPTabClientWnd m_MTIClientWnd;
 
 
 
Hi;
 
I know this possibility, but in case of enabled groups, this won't work!
Perhaps my initial post did not bring this to your attention.
 
So once again I'm looking for any hints on how to toggle between groups enabled tabbed MDI look and standard MDI representation of child windows.
 
But nevertheless thanks for your effort...
 
Martin


Posted By: mgampi
Date Posted: 27 December 2006 at 9:00am
Hi;
 
I'm still looking for any hints on how to toggle between groups enabled tabbed MDI look and standard MDI representation of child windows.
Any ideas???? 
 


-------------
Martin

Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022



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