Click here to Skip to main content
15,913,055 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Lose window focus? Pin
Mircea Puiu25-Mar-05 3:41
Mircea Puiu25-Mar-05 3:41 
GeneralRe: Lose window focus? Pin
Mircea Puiu25-Mar-05 3:50
Mircea Puiu25-Mar-05 3:50 
GeneralRe: Lose window focus? Pin
Dominik Reichl25-Mar-05 4:22
Dominik Reichl25-Mar-05 4:22 
GeneralRe: Lose window focus? Pin
Mircea Puiu25-Mar-05 4:40
Mircea Puiu25-Mar-05 4:40 
GeneralRe: Lose window focus? Pin
Dominik Reichl25-Mar-05 5:47
Dominik Reichl25-Mar-05 5:47 
GeneralRe: Lose window focus? Pin
RobJones25-Mar-05 6:12
RobJones25-Mar-05 6:12 
GeneralRe: Lose window focus? Pin
Dominik Reichl25-Mar-05 6:36
Dominik Reichl25-Mar-05 6:36 
GeneralRe: Lose window focus? Pin
PJ Arends25-Mar-05 7:17
professionalPJ Arends25-Mar-05 7:17 
The WM_ACTIVATEAPP message gives you the thread ID of the app that had or is getting the focus from your app. You might be able to use EnumThreadWindows to find the window associated with the thread. When you want to set focus back to that window use SetForegroundWindow.

Hope this helps, as it is all quessing. Never done this myself.



"You're obviously a superstar." - Christian Graus about me - 12 Feb '03

"Obviously ???  You're definitely a superstar!!!" mYkel - 21 Jun '04

Within you lies the power for good - Use it!
Honoured as one of The Most Helpful Members of 2004

GeneralRe: Lose window focus? Pin
Dominik Reichl25-Mar-05 8:20
Dominik Reichl25-Mar-05 8:20 
GeneralRe: Lose window focus? Pin
David Crow25-Mar-05 5:18
David Crow25-Mar-05 5:18 
GeneralRe: Lose window focus? Pin
Dominik Reichl25-Mar-05 5:47
Dominik Reichl25-Mar-05 5:47 
GeneralSmth. like firewall Pin
Static(x)24-Mar-05 23:24
Static(x)24-Mar-05 23:24 
GeneralRe: Smth. like firewall Pin
MMansonFan2529-Mar-05 23:27
MMansonFan2529-Mar-05 23:27 
GeneralMemory Problem on CPtrArray Pin
Nobitact24-Mar-05 23:17
Nobitact24-Mar-05 23:17 
GeneralRe: Memory Problem on CPtrArray Pin
Blake Miller25-Mar-05 6:40
Blake Miller25-Mar-05 6:40 
GeneralRe: Memory Problem on CPtrArray Pin
Nobitact25-Mar-05 15:17
Nobitact25-Mar-05 15:17 
GeneralRe: Memory Problem on CPtrArray Pin
Blake Miller28-Mar-05 4:05
Blake Miller28-Mar-05 4:05 
QuestionHow to write a Winsock application that captures localhost process packets Pin
covansys200024-Mar-05 23:13
covansys200024-Mar-05 23:13 
General.:: Bluetooth programming ::. (i need help) Pin
wise_8224-Mar-05 23:04
wise_8224-Mar-05 23:04 
GeneralRe: .:: Bluetooth programming ::. (i need help) Pin
toxcct25-Mar-05 1:09
toxcct25-Mar-05 1:09 
GeneralRe: .:: Bluetooth programming ::. (i need help) Pin
wise_8225-Mar-05 11:25
wise_8225-Mar-05 11:25 
GeneralRe: .:: Bluetooth programming ::. (i need help) Pin
toxcct26-Mar-05 4:36
toxcct26-Mar-05 4:36 
QuestionHow to avoid using multiple threads in winsock programming? Pin
johtib24-Mar-05 22:53
johtib24-Mar-05 22:53 
AnswerRe: How to avoid using multiple threads in winsock programming? Pin
geo_m25-Mar-05 2:26
geo_m25-Mar-05 2:26 
AnswerRe: How to avoid using multiple threads in winsock programming? Pin
RobJones25-Mar-05 6:30
RobJones25-Mar-05 6:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.