INameSpaceTreeControl2::SetControlStyle method (shobjidl.h)
Sets the display styles for the namespace object's treeview controls.
Syntax
HRESULT SetControlStyle(
[in] NSTCSTYLE nstcsMask,
[in] NSTCSTYLE nstcsStyle
);
Parameters
[in] nstcsMask
Type: NSTCSTYLE
One or more of the NSTCSTYLE constants that specify the styles for which the method should set new values.
[in] nstcsStyle
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
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::GetControlStyle
Σχόλια
https://aka.ms/ContentUserFeedback.
Σύντομα διαθέσιμα: Καθ' όλη τη διάρκεια του 2024 θα καταργήσουμε σταδιακά τα ζητήματα GitHub ως μηχανισμό ανάδρασης για το περιεχόμενο και θα το αντικαταστήσουμε με ένα νέο σύστημα ανάδρασης. Για περισσότερες πληροφορίες, ανατρέξτε στο θέμα:Υποβολή και προβολή σχολίων για