SftTabs/DLL 6.0

SetTabDialog

Softel vdm, Inc.

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_0);

    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


Feedback / comments / error reports for this topic
© 2016 - Softel vdm, Inc. - www.softelvdm.com