INameSpaceTreeControl2::SetControlStyle method

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

Syntax


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

Parameters

nstcsMask [in]

Type: NSTCSTYLE

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

nstcsStyle [in]

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

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::GetControlStyle
INameSpaceTreeControl2::SetControlStyle2
NSTCSTYLE

 

 

Show: