INameSpaceTreeControl2::GetControlStyle2 method

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

Syntax


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

Parameters

nstcsMask [in]

Type: NSTCSTYLE2

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

pnstcsStyle [out]

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

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

 

 

Show: