Handle to Existing Window

BlitzPlus Forums/BlitzPlus Programming/Handle to Existing Window

Does anyone know the Windows API commands to get the X and Y position of a window and its width and height as well?
No API calls needed. Since everything in BlitPlus is a gadget (including windows) use:

; window x/y/w/h

win=CreateWindow("Move/Resize me",280,30,250,190,Desktop(),11)

Repeat
	wx=GadgetX(win) : wy=GadgetY(win)
	ww=GadgetWidth(win) : wh=GadgetHeight(win)
	SetStatusText win,"x="+wx+"  y="+wy+"    width="+ww+"  height="+wh
Until WaitEvent()=$803

End