INameSpaceTreeControl2::SetControlStyle method (shobjidl.h)

Sets the display styles for the namespace object's treeview controls.

Syntax

HRESULT SetControlStyle(
  [in] NSTCSTYLE nstcsMask,
  [in] NSTCSTYLE nstcsStyle
);

Parameters

[in] nstcsMask

Type: NSTCSTYLE

One or more of the NSTCSTYLE constants that specify the styles for which the method should set new values.

[in] nstcsStyle

Type: NSTCSTYLE

A bitmap that contains the new values for the styles specified in nstcsMask. If the bit that represents the individual NSTCSTYLE value is 0, that style is not used. If the value is 1, the style is applied to the treeview. Styles in positions not specified in nstcsMask are left at their current setting regardless of their bit's value in this bitmap.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Requirement Value
Minimum supported client Windows 7 [desktop apps only]
Minimum supported server Windows Server 2008 R2 [desktop apps only]
Target Platform Windows
Header shobjidl.h

See also

INameSpaceTreeControl2

INameSpaceTreeControl2::GetControlStyle

INameSpaceTreeControl2::SetControlStyle2

NSTCSTYLE