Hide

SftTabs/DLL 6.5 - Tab Control

Display
Print

SetTabWindowPage

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

C++

void CSftTabs::SetTabWindowPage(int iTab, CSftTabsWindowPage* pPage, HWND hWnd = NULL);

Parameters

iTab

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

pPage

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

hwnd

Reserved for future use.

Comments

The SetTabWindowPage function sets the CSftTabsWindowPage based object pointer attached to the specified tab.

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

Example

C++

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

index = m_MainTab.AddTab(_T("&1 Text"));
m_MainTab.SetToolTip(index, _T("Displays the currently opened file"));
m_MainTab.SetTabInfo(index, &Tab0);
m_MainTab.SetTabWindowPage(index, m_pTabEdit);
m_pTabEdit->SaveContext(&m_SavedContext); // save doc/view context

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


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