HeaderPane
Main
Hide
Share Link
Print

UnregisterApp

Unregisters an application from SftBox/DLL.

C

void WINAPI SftBox_UnregisterApp(HINSTANCE hInst);

C++

static void CSftBox::UnregisterApp();

Parameters

hInst

The instance handle of the application. The C++ member function uses the application's instance handle (AfxGetInstanceHandle).

Comments

The UnregisterApp function unregisters an application from SftBox/DLL.

This call allows SftBox/DLL to perform cleanup processing. This call has to be made after all combo box controls have been destroyed.

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

Examples

C View entire sample code

{
    g_hInst = hinst;

    SftDarkMode_Init();                 /* Dark mode support */
    SftBox_RegisterApp(hinst);          /* Register with SftBox/DLL */

    DialogBox(g_hInst, MAKEINTRESOURCE(IDD_MAIN), NULL, MainDialogProc);

    SftBox_UnregisterApp(hinst);        /* Unregister from SftBox/DLL */

    return 0;
}

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


Last Updated 11/21/2026 - (email)
© 2026 Softel vdm, Inc.