SftTabs/DLL 6.0

SetVersion

Softel vdm, Inc.

Sets the SftTabs/DLL version an application requires.

C

BOOL SftTabs_SetVersion(HWND hwndCtl, int version);

C++

BOOL CSftTabs::SetVersion(int version);

Parameters

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.

Returns

The return value is TRUE if the function was successful, otherwise FALSE is returned.

Comments

The SetVersion function sets the SftTabs/DLL version an application requires.

When developing new applications, always use SetVersion(SFTTABS_6_0) 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:

New behavior with SFTTABS_2_1, SFTTABS_2_2:

Example

This example sets version 6.0 compatibility:

C

SftTabs_SetVersion(hwndTab, SFTTABS_6_0); 

C++

m_Tab.SetVersion(SFTTABS_6_0);

See Also  C/C++ API  |  C++ Classes  |  Notifications


Feedback / comments / error reports for this topic
© 2016 - Softel vdm, Inc. - www.softelvdm.com