Hide

SftTabs/DLL 6.5 - Tab Control

Display
Print

DeleteTab

Deletes a tab from the tab control.

C

int SftTabs_DeleteTab(HWND hwndCtl, int iTab);

C++

int CSftTabs::DeleteTab(int iTab);

Parameters

hwndCtl

The window handle of the tab control.

iTab

Specifies the zero-based index of the tab to be deleted.

Returns

The return value is the number of tabs remaining in the tab control. The return value is -1 if an error occurred.

Comments

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.

Example

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


Last Updated 08/13/2020 - (email)
© 2024 Softel vdm, Inc.