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
Terminates a tab control and deactivates all pages.
C++
protected: void CSftTabsWindowSheet::TerminateTabControl(CWnd* pWnd, CSftTabs* pTabCtl);
pWnd
The CWnd based object describing the tab control's parent window.
pTabCtl
A pointer to the tab control's CSftTabs based object.
The TerminateTabControl function terminates a tab control and deactivates all pages.
A tabbed window's tab control has to be terminated, which deactivates and destroys all pages attached to the tab control. This is typically done in the OnDestroy member function of the tabbed window.
When a tabbed window is destroyed, all attached CSftTabsWindowPage objects are automatically destroyed. However, any dynamically allocated CSftTabsWindowPage derived objects must be deleted (using the C++ delete operator) by the application.
This example terminates the tab control of a tabbed window:
void CSampleView::OnDestroy() { // Remove all pages from the tab control TerminateTabControl(this, &m_Tab); // Unregister, or the window properties used won't be removed SftTabs_UnregisterWindow(m_hWnd); CView::OnDestroy(); }
See Also C/C++ API | C++ Classes | Notifications