Click here to Skip to main content
15,920,383 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Enable edit control in Dialog access Enter and ESC Pin
Eytukan19-Jun-06 23:21
Eytukan19-Jun-06 23:21 
QuestionRe: Enable edit control in Dialog access Enter and ESC Pin
zeus_master19-Jun-06 23:33
zeus_master19-Jun-06 23:33 
QuestionCComboBoxEx click bug Pin
jackssf19-Jun-06 21:51
jackssf19-Jun-06 21:51 
AnswerRe: CComboBoxEx click bug Pin
jackssf19-Jun-06 22:50
jackssf19-Jun-06 22:50 
AnswerRe: CComboBoxEx click bug Pin
Weiye Chen19-Jun-06 23:37
Weiye Chen19-Jun-06 23:37 
GeneralRe: CComboBoxEx click bug Pin
jackssf19-Jun-06 23:58
jackssf19-Jun-06 23:58 
Questionkey press problem Pin
aaaan19-Jun-06 21:48
aaaan19-Jun-06 21:48 
AnswerRe: key press problem Pin
Laxman Auti19-Jun-06 22:00
Laxman Auti19-Jun-06 22:00 
aaaan wrote:
My application is dialog based.
at the time of running,if u press Esc key
then it is closed. how can i prevent this.
can any one help me?


See the following code

BOOL CmyApp::PreTranslateMessage(MSG* pMsg) 
{
	// TODO: Add your specialized code here and/or call the base class
	if(pMsg->message == WM_KEYDOWN && (VK_ESCAPE == pMsg->wParam || VK_RETURN == pMsg->wParam))
		//if(AfxMessageBox("Do you want to exit",MB_YESNO)==IDNO)
	pMsg->wParam=NULL;

	return CWinApp::PreTranslateMessage(pMsg);
}


Knock out 't' from can't,
You can if you think you can
Cool | :cool:
AnswerRe: key press problem Pin
Cedric Moonen19-Jun-06 22:01
Cedric Moonen19-Jun-06 22:01 
AnswerRe: key press problem Pin
Hamid_RT19-Jun-06 22:05
Hamid_RT19-Jun-06 22:05 
AnswerRe: key press problem Pin
Eytukan19-Jun-06 23:23
Eytukan19-Jun-06 23:23 
Questionunresolved external symbol -- help please Pin
hendry19719-Jun-06 21:32
hendry19719-Jun-06 21:32 
AnswerRe: unresolved external symbol -- help please Pin
Cedric Moonen19-Jun-06 21:40
Cedric Moonen19-Jun-06 21:40 
AnswerRe: unresolved external symbol -- help please Pin
Weiye Chen19-Jun-06 21:47
Weiye Chen19-Jun-06 21:47 
AnswerRe: unresolved external symbol -- help please Pin
Hamid_RT19-Jun-06 22:07
Hamid_RT19-Jun-06 22:07 
GeneralRe: unresolved external symbol -- help please Pin
hendry19719-Jun-06 22:30
hendry19719-Jun-06 22:30 
QuestionCListBox Properties Pin
chethu66519-Jun-06 21:19
chethu66519-Jun-06 21:19 
AnswerRe: CListBox Properties Pin
voorugonda prashanth19-Jun-06 21:26
voorugonda prashanth19-Jun-06 21:26 
AnswerRe: CListBox Properties Pin
Hamid_RT19-Jun-06 21:43
Hamid_RT19-Jun-06 21:43 
AnswerRe: CListBox Properties Pin
voorugonda prashanth19-Jun-06 21:46
voorugonda prashanth19-Jun-06 21:46 
GeneralRe: CListBox Properties Pin
chethu66519-Jun-06 23:08
chethu66519-Jun-06 23:08 
AnswerRe: CListBox Properties Pin
Viorel.19-Jun-06 21:47
Viorel.19-Jun-06 21:47 
QuestionNcAPI Pin
Le Thanh Cong19-Jun-06 21:13
Le Thanh Cong19-Jun-06 21:13 
QuestionProblem using virtual COM port Pin
tctan19-Jun-06 20:56
tctan19-Jun-06 20:56 
Questionhow can i run C++ code in BREW. Pin
nitinjdalal19-Jun-06 20:26
nitinjdalal19-Jun-06 20:26 

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.