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
Adds a new tab to a tab control. The new tab will be added as the last tab.
C
int SftTabs_AddTab(HWND hwndCtl, LPCTSTR lpszText); int SftTabs_AddTab_A(HWND hwndCtl, LPCWSTR lpszText); int SftTabs_AddTab_W(HWND hwndCtl, LPCWSTR lpszText);
C++
int CSftTabs::AddTab(LPCTSTR lpszText);
hwndCtl
The window handle of the tab control.
lpszText
Points 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 AddTab function adds a new tab to a tab control. The new tab will be added as the last tab.
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. New tabs can be inserted at a specific location using InsertTab.
C
index = SftTabs_AddTab(hwndTab, "A Test");
C++
index = m_Tab.AddTab("A Test");
See Also C/C++ API | C++ Classes | Notifications