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
Switches to the next/previous tab.
C
void SftTabs_SwitchTab(HWND hwndCtl, BOOL fNext);
C++
void CSftTabs::SwitchTab(BOOL fNext);
hwndCtl
The window handle of the tab control.
fNext
If TRUE is specified, the next available tab with a higher tab index is made the active tab, otherwise the previous tab (with a lower tab index) is made the active tab.
The SwitchTab function switches to the next/previous tab.
SwitchTab will skip disabled tabs. If no next/previous tab is available, the function has no effect.
The SetCurrentTab function can be used to make a tab active by using its index.
Sft_SetPictureCheckBox(&Tab.TabPicture, fChecked, 16, 16, TRUE); SftTabs_SetTabInfo(m_hwndMainTab, iTab, &Tab); // save the new tab settings } } } break; case IDC_NEXT: SftTabs_SwitchTab(m_hwndMainTab, TRUE); break; case IDC_BACK: SftTabs_SwitchTab(m_hwndMainTab, FALSE); break; case IDOK: case IDCANCEL: if (code == BN_CLICKED)
fChecked = !fChecked; Sft_SetPictureCheckBox(&Tab.TabPicture, fChecked, 16, 16, TRUE); m_Tab.SetTabInfo(iTab, &Tab); // save the new tab settings } } void CMainDlg::OnBack() { m_Tab.SwitchTab(FALSE); } void CMainDlg::OnNext() { m_Tab.SwitchTab(TRUE); }
See Also C/C++ API | C++ Classes | Notifications