Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Hide the tab and the X close of a child window
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Hide the tab and the X close of a child window

 Post Reply Post Reply
Author
Message
FrankC View Drop Down
Groupie
Groupie


Joined: 04 September 2008
Location: United States
Status: Offline
Points: 35
Post Options Post Options   Thanks (0) Thanks(0)   Quote FrankC Quote  Post ReplyReply Direct Link To This Post Topic: Hide the tab and the X close of a child window
    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

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
FrankC View Drop Down
Groupie
Groupie


Joined: 04 September 2008
Location: United States
Status: Offline
Points: 35
Post Options Post Options   Thanks (0) Thanks(0)   Quote FrankC Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 28 September 2010 at 12:54am
Hi,

yes, its virtual now. Modify sources and add virtual keyword.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.031 seconds.