Retrieves the CSftTabsPage based object attached to the specified tab.
C++
CSftTabsPage* CSftTabs::GetTabDialog(int iTab = -1) const;iTab
The zero-based index of the tab for which information is to be retrieved. If -1 is specified, the information for the currently active tab is retrieved.
The return value is a pointer to the CSftTabsPage based object attached to the specified tab or NULL if no page is attached. The CSftTabsPage based object is set using SetTabDialog.
The GetTabDialog function retrieves the CSftTabsPage based object attached to the specified tab.
C++
void CWizDlg::OnOK()
{
// Only close the dialog if current page says it's OK
CSftTabsPage* pPage = m_Tab.GetTabDialog(m_Tab.GetCurrentTab());
ASSERT(pPage);
if (pPage->AllowSwitch()) {
CSftTabsDialog::OnOK();
}
}See Also C/C++ API | C++ Classes | Notifications