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?