Print Page | Close Window

Hide the tab and the X close of a child window

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=17261
Printed Date: 20 June 2025 at 7:48am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Hide the tab and the X close of a child window
Posted By: FrankC
Subject: Hide the tab and the X close of a child window
Date Posted: 16 September 2010 at 4:11pm

I am using the CXTP-MFC MDI window structure.   As the above picture shows, each child window will display its tab and an X close button if active.

How can I hide the tab and the X close button of a child window with a certain type of class?

Thanks,

Frank




Replies:
Posted By: Oleg
Date Posted: 27 September 2010 at 7:32am
Hi,

create class derived from CXTPTabClientWnd, override
virtual CXTPTabManagerItem* AddItem(CWnd* pChildWnd);

and return NULL for pChildWnd of your type.


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


Posted By: FrankC
Date Posted: 27 September 2010 at 4:01pm
I found my version of Toolkit Pro does not define the CXTPTabClientWnd::AddItem(CWnd* pChildWnd) as virtual.  I have version 12.11, is that mean that the newer version supports virtual?

Thanks,
Frank


Posted By: Oleg
Date Posted: 28 September 2010 at 12:54am
Hi,

yes, its virtual now. Modify sources and add virtual keyword.


-------------
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