[fpc-pascal]How to resize window under win32?

Jeff Pohlmeyer yetanothergeek at yahoo.com
Fri Feb 28 11:09:14 CET 2003

> I'm launching another program from Freepascal program through "exec"
> I need code that can set the position and size of the started program.

I haven't used Windows in a while, but I think you need 
CreateProcess() instead of WinExec()

You can to set the dwX, dwY, dwXSize, and dwYSize fields 
of the lpStartupInfo parameter .

The function is declared in:

and the structures are in:

( or where ever your files are )

The MSDN documentation is at:

  ( That's all on one line )
See also:

Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more

More information about the fpc-pascal mailing list