SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftMask/OCX 7.0 - Masked Edit Control
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftPrintPreview/DLL 2.0 - Print Preview Control (discontinued)
SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftDirectory 3.5 - File/Folder Control (discontinued)
SftMask/OCX 7.0 - Masked Edit Control
SftOptions 1.0 - Registry/INI Control (discontinued)
SftPrintPreview/OCX 1.0 - Print Preview Control (discontinued)
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftTabs/NET 6.0 - Tab Control (discontinued)
SftTree/NET 2.0 - Tree Control
The RegisterApp function registers the calling application for use of SftPrintPreview/DLL controls.
C
BOOL SftPrintPreview_RegisterApp(HINSTANCE hInst);
C++
static BOOL CSftPrintPreview::RegisterApp();
hInst
The instance handle of the application, which will use SftPrintPreview/DLL controls.
The return value is TRUE if SftPrintPreview/DLL has been initialized for this application, otherwise FALSE is returned.
The RegisterApp function registers the calling application for use of SftPrintPreview/DLL controls.
This function allows SftPrintPreview/DLL to register all required window classes for the calling application. This call has to be made before any SftPrintPreview/DLL controls can be created.
An application should call UnregisterApp once the application no longer uses SftPrintPreview/DLL controls.
The call to this function should be made during application initialization.
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++
BOOL CSampleApp::InitInstance() // based on CWinApp { CSftPrintPreview::RegisterApp(); // Register to use SftPrintPreview/DLL .... other initialization return TRUE; }
See Also C/C++ API | C++ Classes | Notifications