Hide

SftTabs/DLL 6.5 - Tab Control

Display
Print

GetTabDialog

Retrieves the CSftTabsPage based object attached to the specified tab.

C++

CSftTabsPage* CSftTabs::GetTabDialog(int iTab = -1) const;

Parameters

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.

Returns

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.

Comments

The GetTabDialog function retrieves the CSftTabsPage based object attached to the specified tab.

Example

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


Last Updated 08/13/2020 - (email)
© 2024 Softel vdm, Inc.