SftTabs/DLL 6.0

UnregisterDialog / -Window

Softel vdm, Inc.

Unregisters a dialog or window which has been previously registered using SftTabs_RegisterDialog or SftTabs_RegisterWindow.

C

BOOL WINAPI SftTabs_UnregisterDialog(HWND hwndDialog);
BOOL WINAPI SftTabs_UnregisterWindow(HWND hwndWnd);

Parameters

hwndDialog, hwndWnd

The window handle of the window or dialog to be unregistered.

Returns

The return value is TRUE if the window is successfully unregistered with SftTabs/DLL.

Comments

The UnregisterDialog function unregisters a dialog or window which has been previously registered using SftTabs_RegisterDialog or SftTabs_RegisterWindow.

If this function is not called, resource leaks may be experienced.

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

case WM_DESTROY: { 
    // Unregister, or the window properties used won't be removed 
    SftTabs_UnregisterDialog(hwndDlg); 
    // destroy all pages 
    SftTabs_Destroy(hwndDlg, GetDlgItem(hwndDlg, IDC_TAB));
    break; 
}

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


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