Hide

SftPrintPreview/DLL 2.0 - Print Preview Control for C/C++

Display
Print

UnregisterApp Function

The UnregisterApp function unregisters the application from SftPrintPreview/DLL.

C

void WINAPI SftPrintPreview_UnregisterApp(HINSTANCE hInst);

C++

static void CSftPrintPreview::UnregisterApp();

Parameters

hInst

The instance handle of the application.

Comments

The UnregisterApp function unregisters the application from SftPrintPreview/DLL.

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

The call to this function should be made during application termination.

Example

C

int PASCAL WinMain(HINSTANCE hinst, HINSTANCE hinstPrev, LPSTR Cmd, int cmdShow)
{
    SftPrintPreview_RegisterApp(hinst); // Register application
    .... application message loop
    SftPrintPreview_UnregisterApp(hinst); // Unregister application
    return msg.wParam;
}

C++

int CSampleApp::ExitInstance() // based on CWinApp
{
    // Unregister from SftPrintPreview/DLL
    CSftPrintPreview::UnregisterApp();
    // call base class
    return CWinApp::ExitInstance();
}

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


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