Hide

SftTabs/DLL 6.5 - Tab Control

Display
Print

Create

Creates a tab control window and attaches it to the CSftTabs object.

C++

BOOL CSftTabs::Create(DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID);

Parameters

dwStyle

Specifies the window style of the tab control.

rect

Specifies the tab control size and location. Can be a CRect object or a RECT structure.

pParentWnd

Specifies the tab control's parent window (usually a CDialog or a CView object).

nID

Specifies the tab control's ID.

Returns

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

Comments

The Create function creates a tab control window and attaches it to the CSftTabs object.

A CSftTabs object is created in two steps. First the CSftTabs constructor is called, then the CSftTabs::Create member function, which initializes the tab control window and attaches it to the CSftTabs object.

Example

This example creates a tab control:

C++

CSftTabs Tab;
Tab.Create(WS_CHILD|WS_VISIBLE|SFTTABSSTYLE_STANDARD_LEFT,
    CRect(250, 200, 400, 700),
    pParentWnd,
    IDC_TAB);

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


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