Click here to Skip to main content
15,906,333 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: which is better and why??? Pin
Jörgen Sigvardsson19-Jun-06 23:43
Jörgen Sigvardsson19-Jun-06 23:43 
QuestionMultithreading question - measure time, and block code Pin
uusheikh19-Jun-06 22:07
uusheikh19-Jun-06 22:07 
AnswerRe: Multithreading question - measure time, and block code Pin
Hamid_RT19-Jun-06 22:12
Hamid_RT19-Jun-06 22:12 
GeneralRe: Multithreading question - measure time, and block code Pin
uusheikh19-Jun-06 22:22
uusheikh19-Jun-06 22:22 
AnswerRe: Multithreading question - measure time, and block code [modified] Pin
Eytukan19-Jun-06 23:04
Eytukan19-Jun-06 23:04 
AnswerRe: Multithreading question - measure time, and block code Pin
Eytukan19-Jun-06 23:17
Eytukan19-Jun-06 23:17 
GeneralRe: Multithreading question - measure time, and block code Pin
uusheikh19-Jun-06 23:31
uusheikh19-Jun-06 23:31 
QuestionEnable edit control in Dialog access Enter and ESC Pin
zeus_master19-Jun-06 22:04
zeus_master19-Jun-06 22:04 
Surely, the Dialog will close when the Enter and ESC key down.
I know reload the PreTranslateMessage(MSG* pMsg) function can avoid the problem.
In my project, there are some other controls in the dialog, and I want the Edit controls and buttons can get the Enter/ESC command but not close the Dialog, is there any way?
I tried the OnChar(), OnCommad(), there din't work at all.


BOOL CEditDlg::PreTranslateMessage(MSG* pMsg)
{
// TODO: Add your specialized code here and/or call the base class
if(pMsg->message==WM_KEYDOWN)
{
if(pMsg->wParam==VK_RETURN || pMsg->wParam==VK_ESCAPE)
{
if (!GetFocus()->IsKindOf(RUNTIME_CLASS(CEdit)))
return true;// pMsg->wParam=NULL ;
else
{
...............
}


}
}

return CDialog::PreTranslateMessage(pMsg);
}
AnswerRe: Enable edit control in Dialog access Enter and ESC Pin
Hamid_RT19-Jun-06 22:09
Hamid_RT19-Jun-06 22:09 
QuestionRe: Enable edit control in Dialog access Enter and ESC Pin
zeus_master19-Jun-06 22:15
zeus_master19-Jun-06 22:15 
AnswerRe: Enable edit control in Dialog access Enter and ESC Pin
FarPointer19-Jun-06 22:10
FarPointer19-Jun-06 22:10 
AnswerRe: Enable edit control in Dialog access Enter and ESC Pin
Cedric Moonen19-Jun-06 22:12
Cedric Moonen19-Jun-06 22:12 
QuestionRe: Enable edit control in Dialog access Enter and ESC Pin
zeus_master19-Jun-06 23:00
zeus_master19-Jun-06 23:00 
AnswerRe: Enable edit control in Dialog access Enter and ESC Pin
Cedric Moonen19-Jun-06 23:08
Cedric Moonen19-Jun-06 23:08 
GeneralRe: Enable edit control in Dialog access Enter and ESC Pin
zeus_master19-Jun-06 23:39
zeus_master19-Jun-06 23:39 
GeneralRe: Enable edit control in Dialog access Enter and ESC Pin
Cedric Moonen19-Jun-06 23:47
Cedric Moonen19-Jun-06 23:47 
GeneralRe: Enable edit control in Dialog access Enter and ESC Pin
zeus_master20-Jun-06 1:54
zeus_master20-Jun-06 1:54 
AnswerRe: Enable edit control in Dialog access Enter and ESC [modified] Pin
Weiye Chen19-Jun-06 22:25
Weiye Chen19-Jun-06 22:25 
GeneralRe: Enable edit control in Dialog access Enter and ESC [modified] Pin
zeus_master19-Jun-06 22:31
zeus_master19-Jun-06 22:31 
GeneralRe: Enable edit control in Dialog access Enter and ESC Pin
Weiye Chen19-Jun-06 22:36
Weiye Chen19-Jun-06 22:36 
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 

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.