07-03-2003, 09:32 AM
Save window dimensions and later restore:
or
if restore must be in other macro, declare variables as global (int+ cx cy, etc),
or save to Registry (rset cx "xxx" ... rget cx "xxx").
Alternatively, use function ArrangeWindows which can save to registry and later
restore dimensions of single or multiple windows:
or
int h=win("Notepad")
RECT r0; GetWindowRect(h &r0)
;...
MoveWindow(h r0.left r0.top r0.right-r0.left r0.bottom-r0.top 1)
if restore must be in other macro, declare variables as global (int+ cx cy, etc),
or save to Registry (rset cx "xxx" ... rget cx "xxx").
Alternatively, use function ArrangeWindows which can save to registry and later
restore dimensions of single or multiple windows: