|
|
|
|
|
UnregisterApp |
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
SftPrintPreview::UnregisterApp();
// call base class
return CWinApp::ExitInstance();
}
See Also C/C++ API | C++ Classes | Notifications