Click here to Skip to main content
15,846,976 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: enable and disable the dialog controls Pin
David Crow23-Jan-06 5:17
David Crow23-Jan-06 5:17 
AnswerRe: enable and disable the dialog controls Pin
domehead23-Jan-06 8:03
domehead23-Jan-06 8:03 
QuestionKeyBoard Handling Pin
rajeevktripathi22-Jan-06 18:51
rajeevktripathi22-Jan-06 18:51 
AnswerRe: KeyBoard Handling Pin
Rajesh R Subramanian22-Jan-06 22:19
professionalRajesh R Subramanian22-Jan-06 22:19 
QuestionRe: KeyBoard Handling Pin
rajeevktripathi23-Jan-06 2:11
rajeevktripathi23-Jan-06 2:11 
AnswerRe: KeyBoard Handling Pin
Rage23-Jan-06 2:59
professionalRage23-Jan-06 2:59 
QuestionRe: KeyBoard Handling Pin
rajeevktripathi23-Jan-06 3:12
rajeevktripathi23-Jan-06 3:12 
AnswerRe: KeyBoard Handling Pin
Rajesh R Subramanian23-Jan-06 19:24
professionalRajesh R Subramanian23-Jan-06 19:24 
rajeevktripathi wrote:
how can I override PreTranslateMessage()message.

Add a handler for it from the class wizard.

rajeevktripathi wrote:
code snippet

Append this code inside your PreTranslateMessage() handler
if(pMsg->message == WM_KEYDOWN)
{
// now the key that is pressed is
// available here! it is 
// pMsg->wParam;
}
</code>

The value at wParam will be virtual key code of the key that was pressed. Its not ascii value or scan code. Please read about virtual key code on MSDN. Handle the key event as you wish. Log it into a file, or execute a function, etc.

Regards,
Rajesh R. Subramanian.

You have an apple and me too. We exchange those and We have an apple each.
You have an idea and me too. We exchange those and We have two ideas each.

QuestionHow to use regular dll? Pin
rushing22-Jan-06 18:05
rushing22-Jan-06 18:05 
AnswerRe: How to use regular dll? Pin
Ryan Binns22-Jan-06 18:14
Ryan Binns22-Jan-06 18:14 
Questionwin98 usb Pin
act_x22-Jan-06 17:45
act_x22-Jan-06 17:45 
QuestionCleaning up the registry Pin
Shraddhan22-Jan-06 17:38
Shraddhan22-Jan-06 17:38 
QuestionMenu IDs converting to Number (VS 2003) ?!? Pin
Warren Stevens22-Jan-06 17:36
Warren Stevens22-Jan-06 17:36 
AnswerRe: Menu IDs converting to Number (VS 2003) ?!? Pin
Ryan Binns22-Jan-06 18:15
Ryan Binns22-Jan-06 18:15 
AnswerRe: Menu IDs converting to Number (VS 2003) ?!? Pin
Warren Stevens23-Jan-06 2:46
Warren Stevens23-Jan-06 2:46 
AnswerRe: Menu IDs converting to Number (VS 2003) ?!? Pin
Rob Caldecott22-Jan-06 22:31
Rob Caldecott22-Jan-06 22:31 
AnswerRe: Menu IDs converting to Number (VS 2003) ?!? Pin
Warren Stevens23-Jan-06 2:50
Warren Stevens23-Jan-06 2:50 
GeneralRe: Menu IDs converting to Number (VS 2003) ?!? Pin
Rob Caldecott23-Jan-06 2:55
Rob Caldecott23-Jan-06 2:55 
AnswerRe: Menu IDs converting to Number (VS 2003) ?!? Pin
Warren Stevens23-Jan-06 3:26
Warren Stevens23-Jan-06 3:26 
QuestionXML to header Pin
Andre xxxxxxx22-Jan-06 12:49
Andre xxxxxxx22-Jan-06 12:49 
AnswerRe: XML to header Pin
__yb22-Jan-06 13:02
__yb22-Jan-06 13:02 
GeneralRe: XML to header Pin
Andre xxxxxxx22-Jan-06 13:09
Andre xxxxxxx22-Jan-06 13:09 
AnswerRe: XML to header Pin
Ryan Binns22-Jan-06 18:23
Ryan Binns22-Jan-06 18:23 
GeneralRe: XML to header Pin
Andre xxxxxxx23-Jan-06 2:26
Andre xxxxxxx23-Jan-06 2:26 
GeneralRe: XML to header Pin
Ryan Binns23-Jan-06 22:55
Ryan Binns23-Jan-06 22:55 

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.