Print Page | Close Window

How to show tab item with its view?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=4256
Printed Date: 10 November 2025 at 3:41pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to show tab item with its view?
Posted By: sevcolor
Subject: How to show tab item with its view?
Date Posted: 21 May 2006 at 4:54am

 I use CXTPTabControl in a SDI application.I want to show a tab item with its view,but my project always show error.How to do it? Can anyone help me?

Thanks a lot!

The following is my project:

https://forum.codejock.com/uploads/sevcolor/2006-05-21_045257_SDITabbedView.rar - 2006-05-21_045257_SDITabbedView.rar




Replies:
Posted By: Oleg
Date Posted: 21 May 2006 at 9:45am

Don't use GetActiveView:

void CMainFrame::OnEditcontrol()
{
 // TODO: Add your command handler code here
 CSDITabbedViewView* pView=(CSDITabbedViewView*)GetDlgItem(AFX_IDW_PANE_FIRST);
 pView->m_wndTabControl.SetCurSel(0);
 
}



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: sevcolor
Date Posted: 27 May 2006 at 5:05am

Hi

Hearty thanks oleg!

I have tried that,it' well done.

I have another question: if I could select a tab item to give a command,for example ,select tab item(2) to open " NOTEPAD.exe".

Would you like to help me? Hearty thanks!




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net