Hide

SftTabs/DLL 6.5 - Tab Control

Display
Print

Using SftTabs/DLL

Depending on the programming language used, the steps necessary to add a tab control to an application differ somewhat, but the following steps outline the basic method:

First, a tab control is added to a dialog using a resource editor (see section Creating a Dialog Resource). When the dialog is later used in an application, the tab control is automatically created and can be accessed using the supplied API. A tab control can also be created outside of a dialog. This is documented in the language specific programming sections Using C and Using C++/MFC.

Once the tab control has been created, the API functions documented in section C, C++ API can be used to add tabs, define attributes, respond to events, etc. The following samples create a very minimal tab control with three tabs as pictured below. This example can easily be extended by adding a few calls to define tab bitmaps or icons and change other tab components to alter the appearance of the tab control.

Sample Code

Using SftTabs/DLL - C Sample
Using SftTabs/DLL - C++/MFC Sample


Last Updated 08/13/2020 - (email)
© 2024 Softel vdm, Inc.