Click here to Skip to main content
16,004,828 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Modal dialog - Close - ESC Pin
vallikumar17-Jan-06 19:38
vallikumar17-Jan-06 19:38 
GeneralThanks: Modal dialog - Close - ESC Pin
Sarvan AL17-Jan-06 19:41
Sarvan AL17-Jan-06 19:41 
GeneralRe: Modal dialog - Close - ESC Pin
Owner drawn17-Jan-06 19:45
Owner drawn17-Jan-06 19:45 
AnswerRe: Modal dialog - Close - ESC Pin
Stephen Hewitt17-Jan-06 19:48
Stephen Hewitt17-Jan-06 19:48 
GeneralRe: Modal dialog - Close - ESC Pin
Owner drawn17-Jan-06 20:01
Owner drawn17-Jan-06 20:01 
AnswerRe: Modal dialog - Close - ESC Pin
Stephen Hewitt17-Jan-06 19:51
Stephen Hewitt17-Jan-06 19:51 
GeneralRe: Modal dialog - Close - ESC Pin
S Douglas17-Jan-06 23:11
professionalS Douglas17-Jan-06 23:11 
AnswerSimple as Pie! Pin
Rajesh R Subramanian17-Jan-06 19:59
professionalRajesh R Subramanian17-Jan-06 19:59 
The simplest solution is to override the PreTranslateMessage()! Within the handler, write this code...

if(pMsg->message == WM_KEYDOWN && pMsg->wParam == VK_ESCAPE)
  wParam = NULL; //yeah you read it right!

Simple as pie Smile | :)

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.

GeneralRe: Simple as Pie! Pin
Stephen Hewitt17-Jan-06 20:05
Stephen Hewitt17-Jan-06 20:05 
GeneralRe: Simple as Pie! Pin
Rajesh R Subramanian17-Jan-06 20:11
professionalRajesh R Subramanian17-Jan-06 20:11 
GeneralRe: Simple as Pie! Pin
Stephen Hewitt17-Jan-06 20:14
Stephen Hewitt17-Jan-06 20:14 
GeneralRe: Simple as Pie! Pin
Prakash Nadar17-Jan-06 22:16
Prakash Nadar17-Jan-06 22:16 
GeneralRe: Simple as Pie! Pin
Stephen Hewitt18-Jan-06 2:03
Stephen Hewitt18-Jan-06 2:03 
GeneralRe: Simple as Pie! Pin
Prakash Nadar18-Jan-06 3:53
Prakash Nadar18-Jan-06 3:53 
GeneralRe: Simple as Pie! Pin
toxcct18-Jan-06 4:00
toxcct18-Jan-06 4:00 
GeneralRe: Simple as Pie! Pin
Prakash Nadar18-Jan-06 4:03
Prakash Nadar18-Jan-06 4:03 
GeneralRe: Simple as Pie! Pin
Rajesh R Subramanian18-Jan-06 16:58
professionalRajesh R Subramanian18-Jan-06 16:58 
GeneralRe: Simple as Pie! Pin
Stephen Hewitt18-Jan-06 11:21
Stephen Hewitt18-Jan-06 11:21 
GeneralRe: Simple as Pie! Pin
Prakash Nadar18-Jan-06 14:50
Prakash Nadar18-Jan-06 14:50 
GeneralRe: Simple as Pie! Pin
Stephen Hewitt18-Jan-06 14:55
Stephen Hewitt18-Jan-06 14:55 
GeneralRe: Simple as Pie! Pin
Rajesh R Subramanian18-Jan-06 16:54
professionalRajesh R Subramanian18-Jan-06 16:54 
GeneralRe: Simple as Pie! Pin
Prakash Nadar18-Jan-06 17:36
Prakash Nadar18-Jan-06 17:36 
GeneralRe: Simple as Pie! Pin
<color>Aljechin 18-Jan-06 17:48
<color>Aljechin 18-Jan-06 17:48 
GeneralRe: Simple as Pie! Pin
Rajesh R Subramanian18-Jan-06 17:51
professionalRajesh R Subramanian18-Jan-06 17:51 
GeneralRe: Simple as Pie! Pin
<color>Aljechin 18-Jan-06 17:53
<color>Aljechin 18-Jan-06 17:53 

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.