INameSpaceTreeControl2::SetControlStyle2 method

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

Syntax


HRESULT SetControlStyle2(
  [in] NSTCSTYLE2 nstcsMask,
  [in] NSTCSTYLE2 nstcsStyle
);

Parameters

nstcsMask [in]

Type: NSTCSTYLE2

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

nstcsStyle [in]

Type: NSTCSTYLE2

A bitmap that contains the new values for the styles specified in nstcsMask. If the bit that represents the individual NSTCSTYLE2 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

Minimum supported client

Windows 7 [desktop apps only]

Minimum supported server

Windows Server 2008 R2 [desktop apps only]

Header

Shobjidl.h

IDL

Shobjidl.idl

See also

INameSpaceTreeControl2
INameSpaceTreeControl2::GetControlStyle2
INameSpaceTreeControl2::SetControlStyle
NSTCSTYLE2

 

 

Show: