INameSpaceTreeControl2::GetControlStyle2 method (shobjidl.h)

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

Syntax

HRESULT GetControlStyle2(
  [in]  NSTCSTYLE2 nstcsMask,
  [out] NSTCSTYLE2 *pnstcsStyle
);

Parameters

[in] nstcsMask

Type: NSTCSTYLE2

One or more of the NSTCSTYLE2 constants that specify the values for which the method should retrieve the current settings.

[out] pnstcsStyle

Type: NSTCSTYLE2*

Pointer to a value that, when this method returns successfully, receives the values requested in nstcsMask. If the bit that represents the individual NSTCSTYLE2 value is 0, that value is not set. If the value is 1, it is the current setting. Bit values in positions not specifically requested in nstcsMask do not necessarily reflect the current settings and should not be used.

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

NSTCSTYLE2