Unregisters an application from SftBox/DLL.
C
void WINAPI SftBox_UnregisterApp(HINSTANCE hInst);
C++
static void CSftBox::UnregisterApp();
hInst
The instance handle of the application. The C++ member function uses the application's instance handle (AfxGetInstanceHandle).
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.
{
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