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
Sets the SftTabs/DLL version an application requires.
C
BOOL SftTabs_SetVersion(HWND hwndCtl, int version);
C++
BOOL CSftTabs::SetVersion(int version);
hwndCtl
The window handle of the tab control.
version
A value indicating for which SftTabs/DLL version the application was developed:
SFTTABS_2_0 | The application was developed for use with SftTabs 2.0. |
SFTTABS_2_1 | The application was developed for use with SftTabs/DLL 2.1. |
SFTTABS_2_2 | The application was developed for use with SftTabs/DLL 2.2. |
SFTTABS_3_5 | The application was developed for use with SftTabs/DLL 3.5. |
SFTTABS_4_0 | The application was developed for use with SftTabs/DLL 4.0. |
SFTTABS_4_5 | The application was developed for use with SftTabs/DLL 4.5. |
SFTTABS_5_0 | The application was developed for use with SftTabs/DLL 5.0. |
SFTTABS_6_0 | The application was developed for use with SftTabs/DLL 6.0. |
SFTTABS_6_5 | The application was developed for use with SftTabs/DLL 6.5. |
The return value is TRUE if the function was successful, otherwise FALSE is returned.
The SetVersion function sets the SftTabs/DLL version an application requires.
When developing new applications, always use SetVersion(SFTTABS_6_5) to be compatible with SftTabs/DLL as documented in this reference.
If SetVersion is not used, compatibility with version 2.0 is the default.
SetVersion must be used for each tab control in an application.
Most features that were introduced with version 2.1 or 2.2 are available even if SetVersion(SFTTABS_2_0) is used. SetVersion cannot be used to disable new features. Its purpose is to make sure that certain API calls have the correct result. Certain features have been modified between 2.0 and 2.1 so the calls actually behave differently.
New behavior with SFTTABS_3_5, SFTTABS_4_0, SFTTABS_4_5, SFTTABS_5_0, SFTTABS_6_0, SFTTABS_6_5:
New behavior with SFTTABS_2_1, SFTTABS_2_2:
This example sets version 6.5 compatibility:
C
SftTabs_SetVersion(hwndTab, SFTTABS_6_5);
C++
m_Tab.SetVersion(SFTTABS_6_5);
See Also C/C++ API | C++ Classes | Notifications