INameSpaceTreeControl2::SetControlStyle2 method (shobjidl.h)
Sets the extended display styles for the namespace object's treeview controls.
Syntax
HRESULT SetControlStyle2(
[in] NSTCSTYLE2 nstcsMask,
[in] NSTCSTYLE2 nstcsStyle
);
Parameters
[in] nstcsMask
Type: NSTCSTYLE2
One or more of the NSTCSTYLE2 constants that specify the styles for which the method should set new values.
[in] nstcsStyle
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
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::GetControlStyle2