Click here to Skip to main content
16,012,110 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: regedit Pin
Rajesh R Subramanian10-Apr-07 23:17
professionalRajesh R Subramanian10-Apr-07 23:17 
QuestionEscape Key Pin
prathuraj10-Apr-07 21:57
prathuraj10-Apr-07 21:57 
AnswerRe: Escape Key Pin
William.Wang10-Apr-07 22:18
William.Wang10-Apr-07 22:18 
GeneralRe: Escape Key Pin
prathuraj10-Apr-07 23:15
prathuraj10-Apr-07 23:15 
GeneralRe: Escape Key Pin
prathuraj10-Apr-07 23:17
prathuraj10-Apr-07 23:17 
AnswerRe: Escape Key Pin
Parthi_Appu10-Apr-07 23:55
Parthi_Appu10-Apr-07 23:55 
GeneralRe: Escape Key Pin
prathuraj11-Apr-07 1:32
prathuraj11-Apr-07 1:32 
AnswerRe: Escape Key Pin
Dustin Henry11-Apr-07 8:22
Dustin Henry11-Apr-07 8:22 
By default, the escape key triggers the OnCancel() event of a modal dialog. You must override the OnCancel function in your dialog class. Example from MSDN:
void MyDialog::OnCancel() 
{
   // TODO: Add extra cleanup here
   
   // Ensure that you reset all the values back to the
   // ones before modification. This handler is called
   // when the user doesn't want to save the changes.
   
   if ( AfxMessageBox("Are you sure you want to abort the changes?", 
         MB_YESNO) == IDNO )
      return; // Give the user a chance if he has unknowingly hit the
              // Cancel button. If he says No, return. Don't reset. If
              // Yes, go ahead and reset the values and close the dialog. 

   CDialog::OnCancel();
}

GeneralRe: Escape Key Pin
William.Wang12-Apr-07 17:01
William.Wang12-Apr-07 17:01 
QuestionHow to overwrite a file in vc++ Pin
Harish_kj10-Apr-07 21:54
Harish_kj10-Apr-07 21:54 
AnswerRe: How to overwrite a file in vc++ Pin
kanduripavan12-Apr-07 7:26
kanduripavan12-Apr-07 7:26 
GeneralRe: How to overwrite a file in vc++ Pin
Harish_kj13-Apr-07 3:30
Harish_kj13-Apr-07 3:30 
QuestionHow to get pixel value Pin
vici4u10-Apr-07 21:11
vici4u10-Apr-07 21:11 
AnswerRe: How to get pixel value Pin
Try10-Apr-07 21:22
Try10-Apr-07 21:22 
AnswerRe: How to get pixel value Pin
Hamid_RT10-Apr-07 21:38
Hamid_RT10-Apr-07 21:38 
QuestionFTP Issue Pin
Programm3r10-Apr-07 21:04
Programm3r10-Apr-07 21:04 
AnswerRe: FTP Issue Pin
Try10-Apr-07 21:14
Try10-Apr-07 21:14 
QuestionRe: FTP Issue [modified] Pin
Programm3r10-Apr-07 22:00
Programm3r10-Apr-07 22:00 
AnswerRe: FTP Issue Pin
cp987611-Apr-07 3:26
cp987611-Apr-07 3:26 
AnswerRe: FTP Issue Pin
Programm3r11-Apr-07 23:38
Programm3r11-Apr-07 23:38 
Questionwindows volume Pin
vimarsh puneet10-Apr-07 19:13
vimarsh puneet10-Apr-07 19:13 
QuestionRe: windows volume Pin
prasad_som10-Apr-07 19:18
prasad_som10-Apr-07 19:18 
AnswerRe: windows volume Pin
vimarsh puneet10-Apr-07 19:25
vimarsh puneet10-Apr-07 19:25 
AnswerRe: windows volume Pin
prasad_som10-Apr-07 19:35
prasad_som10-Apr-07 19:35 
GeneralRe: windows volume Pin
vimarsh puneet10-Apr-07 19:43
vimarsh puneet10-Apr-07 19:43 

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.