September 23rd, 2003, 05:25 AM
Translation of WM_KEYDOWN and Timer placement
Hi all in my application i have two hooks and these are Journal Recrod and GetMessage Hook, due to some reasons now i want to minimize the code and logic that i have wrriten in GetMessage Hook.
The first query in this regard is that how can i translate a WM_KEYDOWN message to WM_CHAR because i am receving a WM_CHAR inside GetMessage and this would not be availble to me in JOURNAL RECORD.
Another question is that in the WM_LBUTTONDOWN of GetMessage i am setting up a timer and then appropriate code inase of WM_TIMER is also in GetMessage, is it possible that i setup the Timer in JOURNAL RECORD and then capture the WM_TIMER message in WNDPROC hook because i might be using WNDPROC instead of GetMessage
hope that i have made clear my point
thanx in advance
September 23rd, 2003, 07:39 PM
To answer your first question, can't you use the TranslateMessage Function to translate your virtual key messages into character messages, just as in a regular windows program?
Click Here to Expand Forum to Full Width