RivKin
asked on
cathing key events
Hello,
I have an MFC application that contains many forms/tabs etc.
I want to catch all keys pressed in my application in a single function.
how can I do that?
I tried overriding the PreTranslateMessage in my MainFrame but it doesn't catch every event (e.g. when the tab heading has the focus).
Thanks,
RivKin
I have an MFC application that contains many forms/tabs etc.
I want to catch all keys pressed in my application in a single function.
how can I do that?
I tried overriding the PreTranslateMessage in my MainFrame but it doesn't catch every event (e.g. when the tab heading has the focus).
Thanks,
RivKin
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Read about CWinApp::ProcessMessageFil ter(). Might be of help in this case
>>Roshon
I think what you have given is message hook not keyboard hook, isn't it?
I think what you have given is message hook not keyboard hook, isn't it?
Yes ;-)
But this handles only keyboard messages for PreTranslateMessage.
Rosh
But this handles only keyboard messages for PreTranslateMessage.
Rosh
>>As jkr says
So, why repeating it?
So, why repeating it?