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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Window wich lost focus 1

Status
Not open for further replies.

Serban

Programmer
Sep 25, 2001
36
0
0
RO
Hi!

How can I find the window wich lost focus (external window) befor my window get focus

Thanks

Mircea
 
Hi,

I assume that you are checking when your window gets focus through the subclassing way (why else would you post this in the API forum). So when you check for the WM_ACTIVATEAPP message the lParam value contains the ThreadID of the previous application if wParam = false.

Good luck
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top