Click here to Skip to main content
15,921,113 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: enable and disable the dialog controls Pin
David Crow23-Jan-06 4:17
David Crow23-Jan-06 4:17 
AnswerRe: enable and disable the dialog controls Pin
domehead23-Jan-06 7:03
domehead23-Jan-06 7:03 
QuestionKeyBoard Handling Pin
rajeevktripathi22-Jan-06 17:51
rajeevktripathi22-Jan-06 17:51 
AnswerRe: KeyBoard Handling Pin
Rajesh R Subramanian22-Jan-06 21:19
professionalRajesh R Subramanian22-Jan-06 21:19 
QuestionRe: KeyBoard Handling Pin
rajeevktripathi23-Jan-06 1:11
rajeevktripathi23-Jan-06 1:11 
AnswerRe: KeyBoard Handling Pin
Rage23-Jan-06 1:59
professionalRage23-Jan-06 1:59 
QuestionRe: KeyBoard Handling Pin
rajeevktripathi23-Jan-06 2:12
rajeevktripathi23-Jan-06 2:12 
AnswerRe: KeyBoard Handling Pin
Rajesh R Subramanian23-Jan-06 18:24
professionalRajesh R Subramanian23-Jan-06 18: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 17:05
rushing22-Jan-06 17:05 
AnswerRe: How to use regular dll? Pin
Ryan Binns22-Jan-06 17:14
Ryan Binns22-Jan-06 17:14 
Questionwin98 usb Pin
act_x22-Jan-06 16:45
act_x22-Jan-06 16:45 
QuestionCleaning up the registry Pin
Shraddhan22-Jan-06 16:38
Shraddhan22-Jan-06 16:38 
QuestionMenu IDs converting to Number (VS 2003) ?!? Pin
Warren Stevens22-Jan-06 16:36
Warren Stevens22-Jan-06 16:36 
AnswerRe: Menu IDs converting to Number (VS 2003) ?!? Pin
Ryan Binns22-Jan-06 17:15
Ryan Binns22-Jan-06 17:15 
AnswerRe: Menu IDs converting to Number (VS 2003) ?!? Pin
Warren Stevens23-Jan-06 1:46
Warren Stevens23-Jan-06 1:46 
AnswerRe: Menu IDs converting to Number (VS 2003) ?!? Pin
Rob Caldecott22-Jan-06 21:31
Rob Caldecott22-Jan-06 21:31 
AnswerRe: Menu IDs converting to Number (VS 2003) ?!? Pin
Warren Stevens23-Jan-06 1:50
Warren Stevens23-Jan-06 1:50 
GeneralRe: Menu IDs converting to Number (VS 2003) ?!? Pin
Rob Caldecott23-Jan-06 1:55
Rob Caldecott23-Jan-06 1:55 
AnswerRe: Menu IDs converting to Number (VS 2003) ?!? Pin
Warren Stevens23-Jan-06 2:26
Warren Stevens23-Jan-06 2:26 
QuestionXML to header Pin
Andre xxxxxxx22-Jan-06 11:49
Andre xxxxxxx22-Jan-06 11:49 
AnswerRe: XML to header Pin
__yb22-Jan-06 12:02
__yb22-Jan-06 12:02 
GeneralRe: XML to header Pin
Andre xxxxxxx22-Jan-06 12:09
Andre xxxxxxx22-Jan-06 12:09 
AnswerRe: XML to header Pin
Ryan Binns22-Jan-06 17:23
Ryan Binns22-Jan-06 17:23 
GeneralRe: XML to header Pin
Andre xxxxxxx23-Jan-06 1:26
Andre xxxxxxx23-Jan-06 1:26 
GeneralRe: XML to header Pin
Ryan Binns23-Jan-06 21:55
Ryan Binns23-Jan-06 21: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.