Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Finding a window and setting it as the active window

Status
Not open for further replies.

Streetdaddy

Programmer
Jun 10, 1999
161
0
0
AU
At the moment Im using the GetWindow API to find a specific window and bring it to the foreground and set focus to it. <br>
<br>
Is there a better way? By returning the caption of each window, I can find the one Im looking for, but mostly there are multiple windows for each process thread. Im maximising all the windows that have the caption name of the process Im looking for, but is it possible to use the hInstance of the process to find it and bring it to the foreground?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top