Tiles the specified child windows of the specified parent window.
#Include <WinAPIEx.au3>
_WinAPI_TileWindows ( $aWnds [, $tRECT [, $hParent [, $iFlags [, $iStart [, $iEnd]]]]] )
$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 | [可选参数] $tagRECT structure that specifies the rectangular area, in client coordinates, within which the windows are arranged. If this parameter is 0, the client area of the parent window is used. |
$hParent | [可选参数] Handle to the parent window. If this parameter is 0, the desktop window is assumed. |
$iFlags | [可选参数] A cascade flag. This parameter can be one or more of the following values. $MDITILE_HORIZONTAL $MDITILE_VERTICAL |
$iStart | [可选参数] The index of array to start arranging at. |
$iEnd | [可选参数] The index of array to stop arranging at. |
Success | The value is the number of windows arranged. |
失败: | 返回 0 并设置 @error 标志为非 0 值. |
在MSDN中搜索
#Include <APIConstants.au3>
#Include <WinAPIEx.au3>
Opt('MustDeclareVars', 1)
Global $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()
Next
_WinAPI_TileWindows($aWnds, _WinAPI_CreateRectEx(20, 20, 600, 600))
Do
Until GUIGetMsg() = -3