![]() |
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 |
Post Options
Thanks(0)
Quote Reply
Topic: Hide the tab and the X close of a child windowPosted: 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
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
FrankC
Groupie
Joined: 04 September 2008 Location: United States Status: Offline Points: 35 |
Post Options
Thanks(0)
Quote Reply
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
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 28 September 2010 at 12:54am |
|
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 |