SftTabs/DLL 6.0

SetControlInfo

Softel vdm, Inc.

Sets tab control attributes.

C

BOOL SftTabs_SetControlInfo(HWND hwndCtl, LPCSFTTABS_CONTROL lpCtl);

C++

BOOL CSftTabs::SetControlInfo(LPCSFTTABS_CONTROL lpCtl);

Parameters

hwndCtl

The window handle of the tab control.

lpCtl

A pointer to a SFTTABS_CONTROL structure. This structure will be used to define the new tab control attributes.

Returns

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

Comments

The SetControlInfo function sets tab control attributes.

If the SFTTABS_CONTROL structure defines a tab control that is invalid, the current tab control settings remain unchanged and the function returns FALSE. The following validations take place to insure that a tab control is valid:

Example

This example retrieves the current tab control attributes and modifies the number of tab rows:

C

SFTTABS_CONTROL Ctl;
SftTabs_GetControlInfo(hwndTab, &Ctl);
Ctl.nRows = 1; 
SftTabs_SetControlInfo(hwndTab, &Ctl); 

C++

SFTTABS_CONTROL Ctl;
m_Tab.GetControlInfo(&Ctl);
Ctl.nRows = 1; 
m_Tab.SetControlInfo(&Ctl);

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


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