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
Inserts a new tab at the specified position.
C
int SftTabs_InsertTab(HWND hwndCtl, int iTab, LPCTSTR lpszText); int SftTabs_InsertTab_A(HWND hwndCtl, int iTab, LPCSTR lpszText); int SftTabs_InsertTab_W(HWND hwndCtl, int iTab, LPCWSTR lpszText);
C++
int CSftTabs::InsertTab(int iTab, LPCTSTR lpszText);
hwndCtl
The window handle of the tab control.
iTab
The zero-based index of the tab to be added. If -1 is specified, the tab will be added at the end.
lpszText
A pointer to the null-terminated string that is to be used as text for the tab label.
The return value is the zero-based index of the newly added tab. The return value is -1 if an error occurred or if the maximum number of tabs has been reached.
The InsertTab function inserts a new tab at the specified position.
The tab control creates a copy of the string supplied.
The WM_SETREDRAW Windows message can be used to suppress the tab control from being redrawn when many tabs are added.
Tabs can be deleted using DeleteTab. Tabs can be added using AddTab.
This example inserts a tab with the tab text "A Test" at the third position:
C
index = SftTabs_InsertTab(hwndTab, 2, "A Test");
C++
index = m_Tab.InsertTab(2, "A Test");
See Also C/C++ API | C++ Classes | Notifications