Link to home
Start Free TrialLog in
Avatar of Member_2_23522
Member_2_23522

asked on

CreateProcess and STARTUPINFO

I am launching an MFC application using the CreateProcess function from antother MFC app and am trying to set the initial position and size of the new application by using the dwX, dwY, dwXSize, and dwYSize members of the STARTUPINFO structure. The documentation states that "these coordinates are only used if the child process creates its first overlapped window with CW_USEDEFAULT" as parameters for x and nWidth in CreateWindow. How can you set these parameters in CreateWindow in an MFC app? I tried setting the cx and x memebrs of the CREATESTRUCT in PreCreateWindow, but this does not work. How can I set the initial position and size of an MFC app created using CreateProcess?
ASKER CERTIFIED SOLUTION
Avatar of cnasarre
cnasarre

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Member_2_23522
Member_2_23522

ASKER

Perfect. Pretty simple, guess I should have done more digging. Thanks.