Поделиться через


CTreeCtrl::SetExtendedStyle

Sets the extended styles for the current tree-view control.

DWORD SetExtendedStyle(
            DWORD dwExMask, 
      DWORD dwExStyles
);

Параметры

Parameter

Description

[in] dwExMask

A bitmask that specifies which styles in the current tree-view control are affected by this method. If this parameter is zero, it is ignored and the value of the dwExStyles parameter is assigned to the tree-view control.

Specify zero or a bitwise combination (OR) of styles described in Tree-View Control Extended Styles.

[in] dwExStyles

A bitmask that specifies which styles in the current tree-view control to set or clear.

To set a combination of styles, specify a bitwise combination (OR) of styles described in Tree-View Control Extended Styles. To clear a set of styles, specify zero.

Возвращаемое значение

A value that contains the previous extended control styles.

Заметки

This method clears the styles specified in the dwExMask parameter, then sets the styles specified in the dwExStyles parameter. Only the extended styles that correspond to the bits in dwExMask change.

This method sends the TVM_SETEXTENDEDSTYLE message, which is described in the Windows SDK.

Требования

Header: afxcmn.h

This method is supported in Windows XP and later.

Additional requirements for this method are described in Build Requirements for Windows Vista Common Controls.

См. также

Основные понятия

CTreeCtrl Class

CTreeCtrl Members

Hierarchy Chart

TVM_SETEXTENDEDSTYLE

CTreeCtrl::GetExtendedStyle

Tree-View Control Extended Styles