![]() |
How to create MDI tabbed window? |
Post Reply
|
| Author | |
Sergey
Newbie
Joined: 15 November 2004 Status: Offline Points: 18 |
Post Options
Thanks(0)
Quote Reply
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? |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
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 |