Print Page | Close Window

CXTPTabClientWnd: auto new workspace.

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=9093
Printed Date: 11 May 2024 at 12:42pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPTabClientWnd: auto new workspace.
Posted By: vintrip
Subject: CXTPTabClientWnd: auto new workspace.
Date Posted: 13 December 2007 at 1:32pm
Dear Readers,
 
   I am using CXTPTabClientWnd in an MDI application. The first opened childframe take the whole client area and subsiquent windows get tabbed to the first one.
 
   Can I make the childframe opened after the first MDI window to automatically open in new horizontally tiled workspace?
 
Thanks,



Replies:
Posted By: Oleg
Date Posted: 14 December 2007 at 2:52pm
Hi,
 
CXTPTabClientWnd calls virtual AddItem after new window appeared:
 
CXTPTabManagerItem* CXTPTabClientWnd::AddItem(CWnd* pChildWnd)
 
you can try create derived class,  override this method, call base method, move tab to new group.
 
See source code.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



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