get window handle and making window move around and making them take focus

how do I get window handle and move them around?

and make them take focus?
TroudeloupAsked:
Who is Participating?
 
jkrConnect With a Mentor Commented:
No, both of them work on all compilers that can create programs for teh Windows platform. All you need is

#include <windows.h>
0
 
Jaime OlivaresConnect With a Mentor Software ArchitectCommented:
are you talking about your own window? or a 3rd-party window?
0
 
TroudeloupAuthor Commented:
any top level window,

such as notepad.exe
0
Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

 
jkrConnect With a Mentor Commented:
To get the handle, use 'FindWindow()' (http://msdn2.microsoft.com/en-us/library/ms633499.aspx), to move it, use 'MoveWindow()' (http://msdn2.microsoft.com/en-us/library/ms633534.aspx), e.g.

HWND hwnd = FindWindow(NULL,"notepad.exe");

// check for error

MoveWindow(hwnd,100,200,300,300,TRUE);
0
 
TroudeloupAuthor Commented:
is it like, functions that would work only if I use visual studio c++, like express?
0
 
TroudeloupAuthor Commented:
will you take  a look of the keyboard and mouse events?
0
 
jkrCommented:
Done ;o)
0
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.