![]() |
Hide the tab and the X close of a child window |
Post Reply ![]() |
Author | |
FrankC ![]() Groupie ![]() Joined: 04 September 2008 Location: United States Status: Offline Points: 35 |
![]() ![]() ![]() ![]() ![]() 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 |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
|
FrankC ![]() Groupie ![]() Joined: 04 September 2008 Location: United States Status: Offline Points: 35 |
![]() ![]() ![]() ![]() ![]() |
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
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
yes, its virtual now. Modify sources and add virtual keyword.
|
|
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 |