Click here to Skip to main content
15,896,726 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Can anyone please advice how to use nested CTAbctrl in MFC? Is there any other alternative control ? Please share example

What I have tried:

Can you please suggest some Idea
Posted
Updated 2-Nov-21 22:43pm

1 solution

You have not given any information on what is not working. See CTabCtrl Class | Microsoft Docs[^].
 
Share this answer
 
Comments
Member 15413972 3-Nov-21 7:09am    
Sub tab ctrl which was laid on 1st tab view page was not showing
Member 15413972 3-Nov-21 7:10am    
BOOL CTabTwo::OnInitDialog()
{
CDialog::OnInitDialog();



m_tabTreatPage.InsertItem(0, _T("Patient"));
m_tabTreatPage.InsertItem(1, _T("PreOp"));
m_tabTreatPage.InsertItem(2, _T("Os Design"));

m_tabTreatPage.Init();
bool bVisible = m_tabTreatPage.IsWindowVisible();
GetDlgItem(IDC_TAB_TREAT)->ShowWindow(SW_SHOW);

bVisible = m_tabTreatPage.IsWindowVisible();
return TRUE; // return TRUE unless you set the focus to a control
}

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900