|
|
|
UnregisterApp |
Unregisters the application.
C
void WINAPI SftTabs_UnregisterApp(HINSTANCE hInst);
C++
static void CSftTabs::UnregisterApp();
Parameters
hwndCtl
The window handle of the tab control.
hInst
The instance handle of the application.
Comments
The UnregisterApp function unregisters the application.
This call allows SftTabs/DLL to unregister all window classes used and perform cleanup processing. This call has to be made after all SftTabs/DLL controls have been destroyed.
The call to this function should be made during application termination.
Example
This example unregisters an application from SftTabs/DLL:
C
int PASCAL WinMain(HINSTANCE hinst, HINSTANCE hinstPrev, LPSTR Cmd, int cmdShow) { SftTabs_RegisterApp(hinst); // Register application .... application message loop SftTabs_UnregisterApp(hinst); // Unregister application return msg.wParam; }
C++
int CSampleApp::ExitInstance() // based on CWinApp { // Unregister from SftTabs/DLL CSftTabs::UnregisterApp(); // call base class return CWinApp::ExitInstance(); }
See Also C/C++ API | C++ Classes | Notifications