BCGSoft Forums
BCGSoft Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Common Forums
 MFC Programming
 Switch in Views ( in Tabbedview example)
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

mehdiasl

1 Posts

Posted - 09/30/2010 :  05:53:49 AM  Show Profile  Visit mehdiasl's Homepage  Reply with Quote
i am writing an application witch counties two different views. and i want go to the second view just from first view's code.
example
void view1::pressbutton1()
{
SetActiveView(view2);
}
but there is no access to tabbed view class for doing that

i used this code too
in tabbed view class by getting event from a menu
void CTabbedViewView::OnScriptEdit()
{
// 101 is index of second view
this->GetTabControl().SetActiveTab(101);
}

is there any solution for over coming this problem ?
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To:
BCGSoft Forums © Copyright (c) 1998-2021 BCGSoft Co Ltd Go To Top Of Page
Snitz Forums 2000