Aide:WinGetClientSize.txt
De Wiki AutoIt Français
Document original V3.3.6.1 :
###Function###
WinGetClientSize
###Description###
Retrieves the size of a given window's client area.
###Syntax###
WinGetClientSize ( "title" [, "text"] )
###Parameters###
@@ParamTable@@
title
The title of the window to read. See <a href="../intro/windowsadvanced.htm">Title special definition</a>.
text
[optional] The text of the window to read.
@@End@@
###ReturnValue###
@@ReturnTable@@
Success: Returns a 2-element array containing the following information:
$array[0] = Width of window's client area
$array[1] = Height of window's client area
Failure: Returns 0 and sets @error to 1 if windows is not found.
@@End@@
###Remarks###
If the window is minimized, the returned width and height values are both zero. However, WinGetClientSize works correctly on (non-minimized) hidden windows. If the window title "Program Manager" is used, the function will return the size of the desktop. If multiple windows match the criteria, the most recently active window is used.
###Related###
WinGetPos, WinMove
###Example###
@@IncludeExample@@
Document traduit V3.3.6.1 :
###Function###
WinGetClientSize
###Description###
Retrouve la taille de la zone client d'une fenêtre.
###Syntax###
WinGetClientSize ( "title" [, "text"] )
###Parameters###
@@ParamTable@@
title
Le titre de la fenêtre à lire. Voir <a href="../intro/windowsadvanced.htm">Définition spéciale de titre</a>.
text
[optionnel] Le texte de la fenêtre à lire.
@@End@@
###ReturnValue###
@@ReturnTable@@
Succès: Retourne un tableau de 2 colonnes contenant les informations suivantes :
$array[0] = Largeur de la zone client de la fenêtre
$array[1] = Hauteur de la zone client de la fenêtre
Échec: Retourne 0 et met @error à 1 si la fenêtre n'est pas trouvée.
@@End@@
###Remarks###
Si la fenêtre est réduite, la largeur et la hauteur retournées sont toutes deux nulles. Toutefois, WinGetClientSize fonctionne correctement sur les fenêtres cachées (non réduites). Si le titre de la fenêtre "Program Manager» est utilisé, la fonction retourne la taille du bureau. Si plusieurs fenêtres correspondent aux critères, la fenêtre active la plus récente est utilisée.
###Related###
<a href="WinGetPos.htm">WinGetPos</a>, <a href="WinMove.htm">WinMove</a>
###Example###
@@IncludeExample@@
Traducteur : Jerome
Contributeurs (pour les modifications avant le Wiki) : jbnh, Tlem