INameSpaceTreeControl2::GetControlStyle method (shobjidl.h)

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

Syntax

HRESULT GetControlStyle(
  [in]  NSTCSTYLE nstcsMask,
  [out] NSTCSTYLE *pnstcsStyle
);

Parameters

[in] nstcsMask

Type: NSTCSTYLE

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

[out] pnstcsStyle

Type: NSTCSTYLE*

Pointer to a value that, when this method returns successfully, receives the values requested in nstcsMask. If the bit that represents the individual NSTCSTYLE 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::GetControlStyle2

INameSpaceTreeControl2::SetControlStyle

NSTCSTYLE