Click here to Skip to main content
16,010,673 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalicon(short cut) Pin
4-May-01 21:07
suss4-May-01 21:07 
GeneralRe: icon(short cut) Pin
Kannan Kalyanaraman4-May-01 22:06
Kannan Kalyanaraman4-May-01 22:06 
GeneralLinking errors when converting from regular to extension DLL Pin
4-May-01 19:22
suss4-May-01 19:22 
GeneralRe: Linking errors when converting from regular to extension DLL Pin
5-May-01 6:19
suss5-May-01 6:19 
QuestionTrapping Escape key with dialog based apps? Pin
4-May-01 11:22
suss4-May-01 11:22 
AnswerRe: Trapping Escape key with dialog based apps? Pin
Christian Graus4-May-01 12:16
protectorChristian Graus4-May-01 12:16 
GeneralRe: Check Paul DiLascia article in MSDN magazine Pin
Masaaki Onishi5-May-01 5:08
Masaaki Onishi5-May-01 5:08 
AnswerRe: Trapping Escape key with dialog based apps? Pin
Jack Handy6-May-01 17:16
Jack Handy6-May-01 17:16 
Override the OnCancel function like so:
void CYourDlg::OnCancel() {
	//override oncancel so we don't exit when they hit esc
}

In addition if you would like to catch the enter key you can override OnOK
void CYourDlg::OnOK() {
	//override onok so we don't exit when they hit enter
}

There is always the F1 key too which will search for a .hlp file which can be overridden by:
void CYourApp::WinHelp(DWORD dwData, UINT nCmd) {
	//CWinApp::WinHelp(dwData, nCmd);
}

(Notice this last one was in your App not the Dialog)

Hope this helped.
GeneralRe: Trapping Escape key with dialog based apps? Pin
Christian Graus6-May-01 17:37
protectorChristian Graus6-May-01 17:37 
GeneralRe: Trapping Escape key with dialog based apps? Pin
Jack Handy6-May-01 17:43
Jack Handy6-May-01 17:43 
GeneralRe: Trapping Escape key with dialog based apps? Pin
Erik Funkenbusch8-May-01 20:02
Erik Funkenbusch8-May-01 20:02 
GeneralRe: Trapping Escape key with dialog based apps? Pin
Christian Graus8-May-01 20:08
protectorChristian Graus8-May-01 20:08 
GeneralRe: Trapping Escape key with dialog based apps? Pin
Erik Funkenbusch9-May-01 0:30
Erik Funkenbusch9-May-01 0:30 
GeneralRe: Trapping Escape key with dialog based apps? Pin
Christian Graus9-May-01 1:38
protectorChristian Graus9-May-01 1:38 
GeneralUsing MFC to host web browser control Pin
RobJones4-May-01 11:17
RobJones4-May-01 11:17 
GeneralRe: Using MFC to host web browser control Pin
Masaaki Onishi5-May-01 4:37
Masaaki Onishi5-May-01 4:37 
GeneralRe: Using MFC to host web browser control Pin
Colin J Davies5-May-01 17:50
Colin J Davies5-May-01 17:50 
GeneralRe: Using MFC to host web browser control Pin
RobJones7-May-01 11:51
RobJones7-May-01 11:51 
GeneralRe: Using MFC to host web browser control Pin
Colin J Davies7-May-01 15:32
Colin J Davies7-May-01 15:32 
GeneralRe: Using MFC to host web browser control Pin
RobJones8-May-01 5:30
RobJones8-May-01 5:30 
GeneralRe: Using MFC to host web browser control Pin
Colin J Davies8-May-01 11:05
Colin J Davies8-May-01 11:05 
GeneralRe: Using MFC to host web browser control Pin
RobJones8-May-01 11:32
RobJones8-May-01 11:32 
GeneralString Parsing Pin
aj4-May-01 10:32
aj4-May-01 10:32 
GeneralRe: String Parsing Pin
Masaaki Onishi5-May-01 4:43
Masaaki Onishi5-May-01 4:43 
GeneralRe: String Parsing Pin
aj7-May-01 10:01
aj7-May-01 10:01 

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.