Méthode IColumnManager::SetColumnInfo (shobjidl_core.h)

Définit l’état d’une colonne spécifiée.

Syntaxe

HRESULT SetColumnInfo(
  [in] REFPROPERTYKEY      propkey,
  [in] const CM_COLUMNINFO *pcmci
);

Paramètres

[in] propkey

Type : REFPROPERTYKEY

Référence à une structure PROPERTYKEY qui identifie la colonne.

[in] pcmci

Type : const CM_COLUMNINFO*

Pointeur vers une structure de CM_COLUMNINFO qui contient l’état à définir pour cette colonne.

Valeur retournée

Type : HRESULT

Retourne l’une des valeurs suivantes.

Code de retour Description
S_OK
Jeu d’état de colonne.
Échec
État de colonne non défini.
E_INVALIDARG
Le paramètre pcmci est NULL.

Configuration requise

   
Client minimal pris en charge Windows Vista [applications de bureau uniquement]
Serveur minimal pris en charge Windows Server 2008 [applications de bureau uniquement]
Plateforme cible Windows
En-tête shobjidl_core.h (incluez Shobjidl.h)
DLL Shell32.dll (version 5.0 ou ultérieure)