Function Reference


_WinAPI_MoveWindow

Changes the position and dimensions of the specified window

#include <WinAPI.au3>
_WinAPI_MoveWindow ( $hWnd, $iX, $iY, $iWidth, $iHeight [, $bRepaint = True] )

Parameters

$hWnd Handle of window
$iX New position of the left side of the window
$iY New position of the top of the window
$iWidth New width of the window
$iHeight New height of the window
$bRepaint [optional] Specifies whether the window is to be repainted. If True, the window receives a $WM_PAINT
message. If False, no repainting of any kind occurs. This applies to the client area, the nonclient area, and
any part of the parent window uncovered as a result of moving a child window. If False, the application must
explicitly invalidate or redraw any parts of the window and parent window that need redrawing.

Return Value

Success: True
Failure: False, call _WinAPI_GetLastError() to get extended error information

See Also

Search MoveWindow in MSDN Library.