Hide

SftTabs/DLL 6.5 - Tab Control

Display
Print

ScrollTabs

Scrolls tabs in the direction specified.

C

int SftTabs_ScrollTabs(HWND hwndCtl, BOOL fUpOrLeft);

C++

int CSftTabs::ScrollTabs(BOOL fUpOrLeft);

Parameters

hwndCtl

The window handle of the tab control.

fUpOrLeft

TRUE to scroll left (or up in a vertical tab control), FALSE to scroll right or down.

Returns

The return value is the index of the new leftmost (topmost) tab visible, or -1 if an error occurred.

Comments

The ScrollTabs function scrolls tabs in the direction specified.

ScrollTabs can only be used with scrollable tab controls. The members fLeftButton and fRightButton of the SFTTABS_CONTROL structure can be tested to see if scrolling in either direction is currently possible.

Example

This example scrolls all tabs left by one position:

C

SftTabs_ScrollTabs(hwndTab, TRUE); 

C++

m_Tab.ScrollTabs(TRUE);

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


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