Click here to Skip to main content
15,895,557 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Why does my dialog closes when I hit 'Enter'?? Pin
Joan M5-May-08 10:06
professionalJoan M5-May-08 10:06 
GeneralRe: Why does my dialog closes when I hit 'Enter'?? Pin
Kiran Satish5-May-08 10:25
Kiran Satish5-May-08 10:25 
GeneralRe: Why does my dialog closes when I hit 'Enter'?? Pin
Joan M5-May-08 10:26
professionalJoan M5-May-08 10:26 
AnswerRe: Why does my dialog closes when I hit 'Enter'?? Pin
machengqi5-May-08 17:03
machengqi5-May-08 17:03 
AnswerRe: Why does my dialog closes when I hit 'Enter'?? Pin
Rajesh R Subramanian5-May-08 18:47
professionalRajesh R Subramanian5-May-08 18:47 
GeneralRe: Why does my dialog closes when I hit 'Enter'?? Pin
Ernest Laurentin6-May-08 5:29
Ernest Laurentin6-May-08 5:29 
QuestionRe: Why does my dialog closes when I hit 'Enter'?? Pin
Rajesh R Subramanian6-May-08 18:19
professionalRajesh R Subramanian6-May-08 18:19 
AnswerRe: Why does my dialog closes when I hit 'Enter'?? Pin
Nelek6-May-08 1:40
protectorNelek6-May-08 1:40 
Another option but not so "pretty" is to use a "bypass". You can use bools that determine which edit box has the focus by setting TRUE in OnEditBoxSetFocus and FALSE in OnEditBoxKillFocus. Then in your OnOk or OnCancel messages (when you press Enter or Cancel) ask for that bools. If no edit box has focus then close dialog, if one of them has it, then process its content and exit the function with a simple return, not the return from CDialog.

It is not a profi way, I know, but works :P

Greetings.
--------
M.D.V. Wink | ;)

If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson

AnswerRe: Why does my dialog closes when I hit 'Enter'?? Pin
Ernest Laurentin6-May-08 5:57
Ernest Laurentin6-May-08 5:57 
QuestionRun-time error '430' - Class does not support Automation or does not support expected interface Pin
godspeed1235-May-08 7:36
godspeed1235-May-08 7:36 
QuestionRe: Run-time error '430' - Class does not support Automation or does not support expected interface Pin
David Crow5-May-08 7:47
David Crow5-May-08 7:47 
AnswerRe: Run-time error '430' - Class does not support Automation or does not support expected interface Pin
godspeed1235-May-08 7:50
godspeed1235-May-08 7:50 
GeneralRe: Run-time error '430' - Class does not support Automation or does not support expected interface Pin
David Crow5-May-08 7:53
David Crow5-May-08 7:53 
QuestionSystem time sync with Oracle Server Pin
megha_gharote5-May-08 4:25
megha_gharote5-May-08 4:25 
AnswerRe: System time sync with Oracle Server Pin
James R. Twine5-May-08 6:34
James R. Twine5-May-08 6:34 
GeneralRe: System time sync with Oracle Server Pin
megha_gharote6-May-08 7:40
megha_gharote6-May-08 7:40 
AnswerRe: System time sync with Oracle Server Pin
Rajesh R Subramanian6-May-08 18:27
professionalRajesh R Subramanian6-May-08 18:27 
AnswerRe: System time sync with Oracle Server Pin
rvicta10-May-08 0:02
professionalrvicta10-May-08 0:02 
QuestionExecuted App from Service Control Manager (SCM) or Double Click Pin
siby siby5-May-08 4:09
siby siby5-May-08 4:09 
AnswerRe: Executed App from Service Control Manager (SCM) or Double Click Pin
James R. Twine5-May-08 6:37
James R. Twine5-May-08 6:37 
QuestionFast way to get an url's source code? Pin
Gofur Halmurat5-May-08 2:26
Gofur Halmurat5-May-08 2:26 
AnswerRe: Fast way to get an url's source code? Pin
ThatsAlok5-May-08 3:22
ThatsAlok5-May-08 3:22 
GeneralRe: Fast way to get an url's source code? Pin
Gofur Halmurat5-May-08 3:27
Gofur Halmurat5-May-08 3:27 
GeneralRe: Fast way to get an url's source code? Pin
ThatsAlok5-May-08 3:45
ThatsAlok5-May-08 3:45 
QuestionRe: Fast way to get an url's source code? Pin
David Crow5-May-08 4:20
David Crow5-May-08 4:20 

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.