SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftMask/OCX 7.0 - Masked Edit Control
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftPrintPreview/DLL 2.0 - Print Preview Control (discontinued)
SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftDirectory 3.5 - File/Folder Control (discontinued)
SftMask/OCX 7.0 - Masked Edit Control
SftOptions 1.0 - Registry/INI Control (discontinued)
SftPrintPreview/OCX 1.0 - Print Preview Control (discontinued)
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftTabs/NET 6.0 - Tab Control (discontinued)
SftTree/NET 2.0 - Tree Control
Handles the SFTTABSN_SWITCHING notification.
C++
protected: void CSftTabsWindowSheet::TabSwitching(CWnd* pParent, CSftTabs* pTabCtl);
pParent
The CWnd based object describing the parent window.
pTabCtl
A pointer to the tab control's CSftTabs based object.
The TabSwitching function handles the SFTTABSN_SWITCHING notification.
A tabbed window must call this function to process the SFTTABSN_SWITCHING notification that is generated by the tab control to switch between pages.
TabSwitching calls the CSftTabsWindowPage::AllowSwitch function of the current page to determine if the next page can be activated. GetNextTab returns the index of the next tab about to become active. By sending a WM_CANCELMODE message, an application can prevent the tab control from activating the next page.
Message map entries must also be added to the tab control's parent window.
This example implements the suggested OnTabSwitching function that calls TabSwitching to switch between pages:
// Add the following definitions to the tab control's parent window // class CYourSheet afx_msg void OnTabSwitching(); afx_msg void OnTabSwitched(); // Add the following to the parent window's message map ON_SFTTABSN_SWITCHING(IDC_TAB, OnTabSwitching) ON_SFTTABSN_SWITCHED(IDC_TAB, OnTabSwitched) // Implement the following functions in CYourSheet void CYourSheet::OnTabSwitching() { TabSwitching(this, &m_Tab); } void CYourSheet::OnTabSwitched() { TabSwitched(this, &m_Tab); }
See Also C/C++ API | C++ Classes | Notifications