Méthode IShellLinkA::SetShowCmd (shobjidl_core.h)

Définit la commande show pour un objet de lien Shell. La commande show définit l’état d’affichage initial de la fenêtre.

Syntaxe

HRESULT SetShowCmd(
  int iShowCmd
);

Paramètres

iShowCmd

Type : int

Commande. SetShowCmd accepte l’une des commandes ShowWindow suivantes.

SW_SHOWNORMAL

Active et affiche une fenêtre. Si la fenêtre est réduite ou agrandie, le système la restaure à sa taille et à sa position d’origine. Une application doit spécifier cet indicateur lors de l’affichage de la fenêtre pour la première fois.

SW_SHOWMAXIMIZED

Active la fenêtre et l’affiche sous la forme d’une fenêtre agrandie.

SW_SHOWMINNOACTIVE

Affiche la fenêtre dans son état réduit, en laissant la fenêtre active comme étant active.

Valeur retournée

Type : HRESULT

Si cette méthode réussit, elle retourne S_OK. Sinon, elle retourne un code d’erreur HRESULT.

Spécifications

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

Voir aussi

IShellLink

IShellLink::GetShowCmd

IShellLinkA

IShellLinkW