|
|
|
RegisterApp |
Registers the application for use of SftTabs/DLL controls.
C
BOOL WINAPI SftTabs_RegisterApp(HINSTANCE hInst);
C++
static BOOL CSftTabs::RegisterApp();
Parameters
hwndCtl
The window handle of the tab control.
hInst
The instance handle of the application, which will use SftTabs/DLL controls.
Returns
The return value is TRUE if SftTabs/DLL has been initialized for this application, otherwise FALSE is returned.
Comments
The RegisterApp function registers the application for use of SftTabs/DLL controls.
This call allows SftTabs/DLL to register all required window classes for the calling application. This call has to be made before any SftTabs/DLL controls are created.
An application should call UnregisterApp once the application no longer uses SftTabs/DLL controls.
The call to this function should be made during application initialization.
Example
This example registers an application with 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++
BOOL CSampleApp::InitInstance() // based on CWinApp { CSftTabs::RegisterApp(); // Register to use SftTabs/DLL .... other initialization return TRUE;
See Also C/C++ API | C++ Classes | Notifications