Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - How to add tabs...
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to add tabs...

 Post Reply Post Reply
Author
Message
ContactGT View Drop Down
Newbie
Newbie


Joined: 30 October 2006
Status: Offline
Points: 28
Post Options Post Options   Thanks (0) Thanks(0)   Quote ContactGT Quote  Post ReplyReply Direct Link To This Post Topic: How to add tabs...
    Posted: 07 November 2006 at 7:05am
I have a CMainFrame derived from CXTPMDIFrameWnd, which contains:
 
 CXTPTabClientWnd m_MTIClientWnd;
 CXTPDockingPaneManager m_paneManager;
 
I have several views on the same document that I want to create as tabs. I can use CreateView to generate my views, but how do I add them as tabs?
 
I have tried doing this:
 
 m_MTIClientWnd.AddItem(view);
 
But it doesn't work because AddItem is a protected member.
Help!
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


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: 07 November 2006 at 9:04am
Hi,
 
Tabs automatically added for all Mdi child frames only. you have to create CChildFrame for your view.
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.063 seconds.