Hide

SftTree/DLL 7.5 - Tree Control

Display
Print

UnregisterApp

Unregisters an application from SftTree/DLL.

C

void WINAPI SftTree_UnregisterApp(HINSTANCE hInst);

C++

static void CSftTree::UnregisterApp();

Parameters

hInst

The instance handle of the application.

Comments

The UnregisterApp function unregisters an application from SftTree/DLL.

This call allows SftTree/DLL to unregister all window classes used and perform cleanup processing. This call has to be made after all SftTree/DLL controls have been destroyed.

An application should call UnregisterApp once the application no longer uses SftTree/DLL controls. In addition, each thread that called RegisterApp during initialization must call UnregisterApp before the thread terminates.

Examples

C

    ShowWindow(hwndMain, cmdShow);
    UpdateWindow(hwndMain);

    while (GetMessage(&msg, NULL, 0, 0)) {
        TranslateMessage(&msg);
        DispatchMessage(&msg);
    }

    SftTree_UnregisterApp(hinst); /* Unregister from SftTree/DLL */

    return (int) msg.wParam;
}

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