ShellExecute and SetWindowPos

I'm calling (from my own program) an application with "ShellExecute". When it's loaded I want to change the position of the application with "SetWindowPos". This doesn't work. Who can help me ?
Who is Participating?
gaohongConnect With a Mentor Commented:

First use FindWindow() to get handle of loaded app,
then  SetWindowPos(), Did you use the handle from FindWindow()
It shoudl work.

To use FindWindow(), you need to know the name or the class name
of the app, which can be found by using WinSight

good luck
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.