Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

ShellExecute and SetWindowPos

Posted on 1997-05-09
1
Medium Priority
?
568 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 100 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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
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 goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
Suggested Courses

886 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