Hide

SftTabs/DLL 6.5 - Tab Control

Display
Print

SetTabDialog

Sets the CSftTabsPage based object pointer attached to the specified tab.

C++

void CSftTabs::SetTabDialog(int iTab, CSftTabsPage* pPage);

Parameters

iTab

The zero-based index of the tab for which information is to be set.

pPage

A pointer to the CSftTabsPage based object representing the page attached to the tab specified.

Comments

The SetTabDialog function sets the CSftTabsPage based object pointer attached to the specified tab.

This function is used by the CSftTabsDialog and CSftTabsPage class implementation. When a tab is made the active tab, the CSftTabsPage based dialog is created or made visible.

Example

C++

/* We are using new features */
m_Tab.SetVersion(SFTTABS_6_5);

index = m_Tab.AddTab(_T("The First One"));
m_Tab.SetToolTip(index, _T("Demonstrates tabbing into and out of the tab page"));
Tab = Tab0;
Tab.graph.item.hBitmap = (HBITMAP) m_SampleBitmap.m_hObject;
m_Tab.SetTabInfo(index, &Tab);
m_Tab.SetTabDialog(index, new CPage1(this)); /* tab page */

See Also C/C++ API | C++ Classes | Notifications


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