Solved

ShellExecute and SetWindowPos

Posted on 1997-05-09
1
528 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Fast access to array, using indexes, smart iterative search 2 107
is twain_32.dll cmpatible with windows 10 ? 10 125
Dialogbox API leak? 18 81
Problem with SqlConnection 4 160
Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
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…

910 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

21 Experts available now in Live!

Get 1:1 Help Now