Solved

ShellExecute and SetWindowPos

Posted on 1997-05-09
1
546 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Compile GLUT with Visual Studio 2015 1 236
is twain_32.dll cmpatible with windows 10 ? 10 274
object oriented programming comparison 5 93
DCT of  2D array using fftw in c++ 9 133
  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

738 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