[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:
C:\FPC\RTL\WIN32\WININC\UNIDEF.INC 

and the structures are in:
C:\FPC\RTL\WIN32\WININC\STRUCT.INC

( or where ever your files are )


The MSDN documentation is at:
 <url>
  http://msdn.microsoft.com/library/default.asp
  ?url=/library/en-us/dllproc/base/startupinfo_str.asp 
</url>

  ( That's all on one line )
  
See also:
  http://www.delphicorner.f9.co.uk/articles/wapi4.htm
  http://www.google.com/search?q=CreateProcess+Delphi


__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/



More information about the fpc-pascal mailing list