SEC_TREECLASS::Create
Creates an SEC_TREECLASS window.
Defined in: trcore.inl
Syntax
BOOL Create( DWORD dwStyle, const RECT& rect,CWnd* pParentWnd, UINT uID,CCreateContext* pContext=NULL)
BOOL Create( DWORD dwStyle, DWORD dwExStyle, const RECT& rect, CWnd* pParentWnd, UINT uID, CCreateContext* pContext=NULL)
Return Value
Nonzero if the tree view control is successfully created; otherwise 0.
Parameters
dwStyle
Specifies the tree view control’s style. See Remarks below.
dwExStyle
Specifies the tree view control’s extended style. See Remarks below.
rect
Specifies the tree view control’s size and position. It can be either a RECT structure or a CRect object.
pParentWnd
Specifies the tree view control's parent window. It must not be NULL.
uID
Specifies the tree view control’s ID.
pContext
The create context of the window.
Comments
The following styles can be applied to a tree view control:
TVS_HASLINES
The tree view control has lines linking child items to their corresponding parent items.
TVS_LINESATROOT
The tree view control has lines linking child items to the root of the hierarchy.
TVS_HASBUTTONS
The tree view control adds a button to the left of each parent item.
TVS_EDITLABELS
The tree view control allows the user to edit the labels of tree view items.
TVS_SHOWSELALWAYS
Causes a selected item to remain selected when the tree view control loses focus.
TVS_DISABLEDRAGDROP
The tree view control is prevented from sending TVN_BEGINDRAG notification messages.
The following extended styles are defined by SEC_TREECLASS:
TVXS_MULTISEL
Use with multiple selection enabled. See also SECListCtrl::EnableMultiSelect.
TVXS_WORDWRAP
Use with wordwrap enabled. See also SECListCtrl::EnableWordWrap.
TVXS_COLUMNHEADER
Use with column header control enabled. See also SECListCtrl::EnableHeaderCtrl.
TVXS_FLYBYTOOLTIPS
Use with tool tips enabled. See also SECListCtrl::EnableToolTips.