Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - How to create MDI tabbed window?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to create MDI tabbed window?

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


Joined: 15 November 2004
Status: Offline
Points: 18
Post Options Post Options   Thanks (0) Thanks(0)   Quote Sergey Quote  Post ReplyReply Direct Link To This Post Topic: How to create MDI tabbed window?
    Posted: 26 April 2006 at 9:23am

We have an MDI application. I would like to create Tabbed documents (like in VS7.1 or in your sample "MDI Tabbed Windows"). For this purpose I have to use CXTPMDIFrameWnd as a base class for main frame:

class CMyMainFrame : public CXTPMDIFrameWnd.

However we use the following pattern for main frame:

class CMyMainFrame : public  CXTPFrameWndBase<CMyMfBase>

The question is:

How to create MDI tabbed window?

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: 27 April 2006 at 9:01am

Hmm.. you must override CXTPTabClientWnd and its GetCommandBars

class CTabClientWnd : public CXTPTabClientWnd
{

   virtual CXTPCommandBars* GetCommandBars() const {

   return ((CMainFrame*)m_pParentFrame)->GetCommandBars();

  }
}

and you can Attach it:

 

CTabClientWnd m_client;

...

m_client.Attach((CXTPMDIFrameWnd*)this);

 

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.047 seconds.