12-07-2003, 12:21 AM
int h=win("Notepad")
act h
RECT r; GetWindowRect(h &r)
int pst=SetWindowLong(h GWL_STYLE GetWindowLong(h GWL_STYLE)~(WS_BORDER|WS_DLGFRAME|WS_THICKFRAME))
MoveWindow(h r.left r.top r.right-r.left r.bottom-r.top-1 1)
3
SetWindowLong(h GWL_STYLE pst)
MoveWindow(h r.left r.top r.right-r.left r.bottom-r.top 1)