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
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
SftTree/NET 2.0 - Tree Control
Deletes a tab from the tab control.
C
int SftTabs_DeleteTab(HWND hwndCtl, int iTab);
C++
int CSftTabs::DeleteTab(int iTab);
hwndCtl
The window handle of the tab control.
iTab
Specifies the zero-based index of the tab to be deleted.
The return value is the number of tabs remaining in the tab control. The return value is -1 if an error occurred.
The DeleteTab function deletes a tab from the tab control.
The WM_SETREDRAW Windows message can be used to suppress the tab control from being redrawn when many tabs are deleted.
Deleting an active tab can cause unpredictable results. Switch to another tab first using SetCurrentTab.
This example deletes the tenth tab from the tab control:
C
total = SftTabs_DeleteTab(hwndTab, 9);
C++
total = m_Tab.DeleteTab(9);
See Also C/C++ API | C++ Classes | Notifications
