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!

active window handle

Status
Not open for further replies.

sinek

Programmer
Dec 4, 2008
2
HR
hi
can anyone give me an idea about how to obtain the handle of the current active window, how to receive this information from the system continuously. i.e to obtain this information whenever the user switches from one application window to another application window

regards,
imran

 
1. To find current active: You must use EnumWindows().
2. By changes:Hook WM_ACTIVATE, WM_SETFOCUS, WM_SHOWWINDOW.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top