Click here to Skip to main content
15,886,362 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: PreTranslateMessage problem? :( Pin
bosfan24-Feb-12 3:25
bosfan24-Feb-12 3:25 
GeneralRe: PreTranslateMessage problem? :( Pin
David Crow24-Feb-12 4:05
David Crow24-Feb-12 4:05 
GeneralRe: PreTranslateMessage problem? :( Pin
bosfan24-Feb-12 4:33
bosfan24-Feb-12 4:33 
GeneralRe: PreTranslateMessage problem? :( Pin
Jochen Arndt24-Feb-12 5:10
professionalJochen Arndt24-Feb-12 5:10 
GeneralRe: PreTranslateMessage problem? :( Pin
bosfan24-Feb-12 5:25
bosfan24-Feb-12 5:25 
AnswerRe: PreTranslateMessage problem? :( Pin
Member 843817224-Feb-12 4:51
Member 843817224-Feb-12 4:51 
GeneralRe: PreTranslateMessage problem? :( Pin
bosfan24-Feb-12 5:20
bosfan24-Feb-12 5:20 
AnswerRe: PreTranslateMessage problem? :( Pin
Randor 24-Feb-12 10:12
professional Randor 24-Feb-12 10:12 
Hi,

There is probably nothing syntactically wrong with your code. Your architecture is wrong. When worker thread B interacts with a window belonging to thread A... the windows subsystem (win32k.sys) associates thread B with the window and thread B will potentially recieve messages from the input queue... it actually depends on which thread is the 'foreground thread'.

This effectively causes worker thread B to eat your input message for lunch.

Best Wishes,
-David Delaune

P.S.
I assert that the documentation on MSDN is incomplete: About Keyboard Input[^]

The graph and description there is a simplification of what is actually happening and does not address thread groups.

Best Wishes,
-David Delaune
AnswerRe: PreTranslateMessage problem? :( Pin
JackDingler24-Feb-12 10:56
JackDingler24-Feb-12 10:56 
QuestionHow to fix compile error error C2535 Pin
KASR124-Feb-12 0:06
KASR124-Feb-12 0:06 
AnswerRe: How to fix compile error error C2535 Pin
Code-o-mat24-Feb-12 22:50
Code-o-mat24-Feb-12 22:50 
QuestionHow to create toolbar on the dialog. Pin
appollosputnik23-Feb-12 23:11
appollosputnik23-Feb-12 23:11 
AnswerRe: How to create toolbar on the dialog. Pin
_AnsHUMAN_ 24-Feb-12 1:24
_AnsHUMAN_ 24-Feb-12 1:24 
QuestionRe: How to create toolbar on the dialog. Pin
David Crow24-Feb-12 3:15
David Crow24-Feb-12 3:15 
QuestionOnTimer function is killed automatically when the dialog is closed Pin
shanmugarajaa23-Feb-12 21:50
shanmugarajaa23-Feb-12 21:50 
AnswerRe: OnTimer function is killed automatically when the dialog is closed Pin
Jochen Arndt23-Feb-12 22:21
professionalJochen Arndt23-Feb-12 22:21 
QuestionRe: OnTimer function is killed automatically when the dialog is closed Pin
Richard MacCutchan23-Feb-12 22:24
mveRichard MacCutchan23-Feb-12 22:24 
AnswerRe: OnTimer function is killed automatically when the dialog is closed Pin
shanmugarajaa23-Feb-12 23:28
shanmugarajaa23-Feb-12 23:28 
GeneralRe: OnTimer function is killed automatically when the dialog is closed Pin
Richard MacCutchan23-Feb-12 23:40
mveRichard MacCutchan23-Feb-12 23:40 
AnswerRe: OnTimer function is killed automatically when the dialog is closed Pin
bjorn_ht23-Feb-12 22:29
bjorn_ht23-Feb-12 22:29 
GeneralRe: OnTimer function is killed automatically when the dialog is closed Pin
shanmugarajaa23-Feb-12 23:37
shanmugarajaa23-Feb-12 23:37 
GeneralRe: OnTimer function is killed automatically when the dialog is closed Pin
bjorn_ht24-Feb-12 1:22
bjorn_ht24-Feb-12 1:22 
GeneralRe: OnTimer function is killed automatically when the dialog is closed Pin
shanmugarajaa24-Feb-12 1:53
shanmugarajaa24-Feb-12 1:53 
GeneralRe: OnTimer function is killed automatically when the dialog is closed Pin
bjorn_ht24-Feb-12 3:18
bjorn_ht24-Feb-12 3:18 
GeneralRe: OnTimer function is killed automatically when the dialog is closed Pin
shanmugarajaa24-Feb-12 19:49
shanmugarajaa24-Feb-12 19:49 

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.