Solved

ShellExecute and SetWindowPos

Posted on 1997-05-09
1
524 Views
Last Modified: 2012-06-22
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 ?
0
Comment
Question by:tuur
1 Comment
 
LVL 3

Accepted Solution

by:
gaohong earned 50 total points
ID: 1163366
Hi:

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
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now