Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - How to show tab item with its view?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to show tab item with its view?

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


Joined: 21 May 2006
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote sevcolor Quote  Post ReplyReply Direct Link To This Post Topic: How to show tab item with its view?
    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:

2006-05-21_045257_SDITabbedView.rar

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: 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
Back to Top
sevcolor View Drop Down
Newbie
Newbie


Joined: 21 May 2006
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote sevcolor Quote  Post ReplyReply Direct Link To This Post 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!

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.