Click here to Skip to main content
15,908,173 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Tree Control Pin
Ravi Bhavnani26-Mar-05 3:12
professionalRavi Bhavnani26-Mar-05 3:12 
QuestionLose window focus? Pin
Dominik Reichl25-Mar-05 0:58
Dominik Reichl25-Mar-05 0:58 
AnswerRe: Lose window focus? Pin
Mircea Puiu25-Mar-05 2:25
Mircea Puiu25-Mar-05 2:25 
GeneralRe: Lose window focus? Pin
Dominik Reichl25-Mar-05 3:33
Dominik Reichl25-Mar-05 3:33 
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 
1. To simply lose the focus, you call SetFocus(NULL);

2. MSDN says that:
"Windows created in different threads typically process input independently of each other. That is, they have their own input states (focus, active, capture windows, key state, queue status, and so on), and they are not synchronized with the input processing of other threads. By using the AttachThreadInput function, a thread can attach its input processing to another thread. This also allows threads to share their input states, so they can call the SetFocus function to set the keyboard focus to a window of a different thread."

Maybe one of these help?


SkyWalker
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 
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 

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.