Funktionreferenz


_WinAPI_TileWindows


Tiles the specified child windows of the specified parent window

#include <WinAPISysWin.au3>
_WinAPI_TileWindows ( $aWnds [, $tRECT = 0 [, $hParent = 0 [, $iFlags = 0 [, $iStart = 0 [, $iEnd = -1]]]]] )

Parameter

$aWnds The array of handles to the child windows to arrange. If a specified child window is a top-level window
with the style $WS_EX_TOPMOST or $WS_EX_TOOLWINDOW, the child window is not arranged. If this parameter
is 0, all child windows of the specified parent window (or of the desktop window) are arranged.
$tRECT [optional] $tagRECT structure that specifies the rectangular area, in client coordinates, within which the windows
are arranged. If this parameter is 0 (Default), the client area of the parent window is used.
$hParent [optional] Handle to the parent window. If this parameter is 0 (Default), the desktop window is assumed.
$iFlags [optional] A cascade flag. This parameter can be one or more of the following values.
$MDITILE_HORIZONTAL
$MDITILE_VERTICAL (Default)
$iStart [optional] The index of array to start arranging at.
$iEnd [optional] The index of array to stop arranging at.

Rückgabewert

Success: The value is the number of windows arranged.
Failure: 0.

Bemerkungen

None.

Siehe auch

Suche nach TileWindows in der MSDN Bibliothek.

Beispiel

#include <GUIConstantsEx.au3>
#include <WinAPIMisc.au3>
#include <WinAPISysWin.au3>
#include <WindowsConstants.au3>

_Example()

Func _Example()
    Local $aWnds[4]

    For $i = 0 To UBound($aWnds) - 1
        $aWnds[$i] = GUICreate('#' & ($i + 1), 400, 400, -1, -1, BitOR($WS_CAPTION, $WS_POPUP, $WS_SIZEBOX, $WS_SYSMENU))
        GUISetState(@SW_SHOW)
    Next

    _WinAPI_TileWindows($aWnds, _WinAPI_CreateRectEx(20, 20, 600, 600))

    Do
    Until GUIGetMsg() = $GUI_EVENT_CLOSE
EndFunc   ;==>_Example