Hide

SftTabs/DLL 6.5 - Tab Control

Display
Print

UnregisterDialog

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;
}

Examples

C

            Ctl.defaultAnimationTimeShow = 200;
            SftTabs_SetControlInfo(hwndTab, &Ctl);
        }
        return FALSE;                   // input focus already set
     }

    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_P6_TAB1));
        SftTabs_Destroy(hwndDlg, GetDlgItem(hwndDlg, IDC_P6_TAB2));
        break;
     }

    case WM_COMMAND: {

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


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