win32gui.SetWindowPos

SetWindowPos(hWnd, InsertAfter, X, Y, cx, cy, Flags)

Sets the position and size of a window

Parameters

hWnd : PyHANDLE

Handle to the window

InsertAfter : PyHANDLE

Window that hWnd will be placed below. Can be a window handle or one of HWND_BOTTOM,HWND_NOTOPMOST,HWND_TOP, or HWND_TOPMOST

X : int

New X coord

Y : int

New Y coord

cx : int

New width of window

cy : int

New height of window

Flags : int

Combination of win32con.SWP_* flags