Starting a particular windows app ( such as word.exe or acrobat.exe) @ particular co-ordinates on your desktop
-
I need to launch a windows app. @ particular co-ordinates on my extended windows desktop, from within a MFC Dialog. I can launch the app. fine, but dont know how to launch it at a particular position. I also know that if I position the app to the appropriate position and close it,it will come up in the same position the next time its launched, but thats not really the way I want to do it. Any one has a clue?
-
I need to launch a windows app. @ particular co-ordinates on my extended windows desktop, from within a MFC Dialog. I can launch the app. fine, but dont know how to launch it at a particular position. I also know that if I position the app to the appropriate position and close it,it will come up in the same position the next time its launched, but thats not really the way I want to do it. Any one has a clue?
Use
CreateProcess()
and in theSTARTUPINFO
struct, fill in thedwX
,dwY
,dwXSize
, anddwYSize
members. --Mike-- Ericahist | CP SearchBar v2.0.2 | Homepage | RightClick-Encrypt | 1ClickPicGrabber Actual sign at the laundromat I go to: "No tinting or dying." -
Use
CreateProcess()
and in theSTARTUPINFO
struct, fill in thedwX
,dwY
,dwXSize
, anddwYSize
members. --Mike-- Ericahist | CP SearchBar v2.0.2 | Homepage | RightClick-Encrypt | 1ClickPicGrabber Actual sign at the laundromat I go to: "No tinting or dying."Unfortunately, I am using ShellExecute() to launch the process, did that because we wanted for the app. to come up in its default program. i.e if its a word doc, MS word will launch it. If its a pdf adobe acrobat will launch it. and unfortunately ShellExecute() doesn't let you pass position parameters. Any other ideas?
-
Unfortunately, I am using ShellExecute() to launch the process, did that because we wanted for the app. to come up in its default program. i.e if its a word doc, MS word will launch it. If its a pdf adobe acrobat will launch it. and unfortunately ShellExecute() doesn't let you pass position parameters. Any other ideas?