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

C / C++ / MFC

 
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 
zeus_master wrote:
GetFocus()->IsKindOf(RUNTIME_CLASS(CEdit))

If this return true it means the current focus is in an edit control (could be any edit control). If it return false, it mean focus is not in any edit control.

zeus_master wrote:
f the focus is on edit control, then do what I want to

Then you code should be:
if (GetFocus()->IsKindOf(RUNTIME_CLASS(CEdit))) 
{
   // do your thing
}


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 
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 

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.