SftTabs/DLL 6.0

Destroy

Softel vdm, Inc.

The parent window of a tab control calls SftTabs_Destroy when the parent window is about to be destroyed.

C

BOOL WINAPI SftTabs_Destroy(HWND hwndParent, HWND hwndCtl);

Parameters

hwndParent

The window handle of the tab control's parent window.

hwndCtl

The window handle of the tab control.

Returns

The return value is TRUE if the function was successful, otherwise FALSE is returned.

Comments

The Destroy function is called by the parent window of a tab control when the parent window is about to be destroyed.

SftTabs_Destroy is only used in the C implementation of tabbed dialogs and tabbed windows.

The SftTabs_Destroy function ends and destroys all pages that may still exist (even though not active) by calling the tab callback routines SFTTABS_TABCALLBACK responsible for each tab page.

Example

This C example shows a typical tabbed dialog WM_DESTROY message handler:

/* Unregister, or the window properties used won't be removed */ 
SftTabs_UnregisterDialog(hwndParent);
/* destroy all pages */ 
SftTabs_Destroy(hwndParent, GetDlgItem(hwndParent, IDC_TAB));

See Also  C/C++ API  |  C++ Classes  |  Notifications


Feedback / comments / error reports for this topic
© 2016 - Softel vdm, Inc. - www.softelvdm.com