ltlearn
Feb 9th, 2002, 11:41 AM
I am using the API "CreateProcess" to launch the other application program. My program is using this method to launch the same program a few times, but the windows are stacked onto each other and the user may not see there are a few windows opened. I would like to move the window away or make it tile horizontally, how do I do it ?
here is my code;
Private Declare Function CreateProcess Lib "kernel32" Alias "CreateProcessA" (ByVal lpApplicationName As String, ByVal lpCommandLine As String, lpProcessAttributes As Long, lpThreadAttributes As Long, ByVal bInheritHandles As Long, ByVal dwCreationFlags As Long, lpEnvironment As Any, ByVal lpCurrentDriectory As String, lpStartupInfo As STARTUPINFO, lpProcessInformation As PROCESS_INFORMATION) As Long
Do while loopcount < 6
RetVal = CreateProcess(vbNullString, _
ApplicationName, ByVal 0&, ByVal 0&, _
1&, NORMAL_PRIORITY_CLASS, ByVal 0&, vbNullString, _
startInfo6, processInfo6)
loopcount = loopcount + 1
loop
here is my code;
Private Declare Function CreateProcess Lib "kernel32" Alias "CreateProcessA" (ByVal lpApplicationName As String, ByVal lpCommandLine As String, lpProcessAttributes As Long, lpThreadAttributes As Long, ByVal bInheritHandles As Long, ByVal dwCreationFlags As Long, lpEnvironment As Any, ByVal lpCurrentDriectory As String, lpStartupInfo As STARTUPINFO, lpProcessInformation As PROCESS_INFORMATION) As Long
Do while loopcount < 6
RetVal = CreateProcess(vbNullString, _
ApplicationName, ByVal 0&, ByVal 0&, _
1&, NORMAL_PRIORITY_CLASS, ByVal 0&, vbNullString, _
startInfo6, processInfo6)
loopcount = loopcount + 1
loop