Click here to Skip to main content
15,910,083 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Formatting a partition Pin
RomTibi6-May-08 7:04
RomTibi6-May-08 7:04 
AnswerRe: Formatting a partition Pin
Mukesh Kumar5-May-08 18:34
Mukesh Kumar5-May-08 18:34 
GeneralRe: Formatting a partition Pin
RomTibi6-May-08 7:05
RomTibi6-May-08 7:05 
AnswerRe: Formatting a partition Pin
Hamid_RT5-May-08 18:37
Hamid_RT5-May-08 18:37 
GeneralRe: Formatting a partition Pin
CPallini5-May-08 21:54
mveCPallini5-May-08 21:54 
GeneralRe: Formatting a partition Pin
Hamid_RT6-May-08 1:05
Hamid_RT6-May-08 1:05 
GeneralRe: Formatting a partition Pin
RomTibi6-May-08 7:05
RomTibi6-May-08 7:05 
QuestionWhy does my dialog closes when I hit 'Enter'?? Pin
Kiran Satish5-May-08 7:56
Kiran Satish5-May-08 7:56 
I am having a dialog control with edit boxes in it and when I type in those boxes and hit 'Enter' key the dialog closes. I am not having any OK or Cancel buttons (I deleted them as soon as I created the dialog). I want to replicate tab behavior when I hit 'Enter' key and also for a couple of edit boxes in the same dialog I have declared handlers to do some processing as below-

//in Message Map<br />
ON_NOTIFY(EN_MSGFILTER, IDE_CONTROL, UpdateControl)<br />
//in OnInitDialog fucntion<br />
CWnd* wnd;<br />
wnd = GetDlgItem(IDE_CONTROL);<br />
wnd->SendMessage(EM_SETEVENTMASK, 0, ENM_KEYEVENTS);<br />
//later in the file<br />
void CControlDlg::UpdateControl(WPARAM wParam, LPARAM lParam) <br />
{<br />
//code to perform some functions<br />
}


How can I perform both of these functions at the same time (disabling enter key/escape key from closing the dialog, while processing the above function when you hit 'Enter' key in some single line edit boxes)??

thanks for any help.

PKNT

AnswerRe: Why does my dialog closes when I hit 'Enter'?? Pin
Ernest Laurentin5-May-08 8:03
Ernest Laurentin5-May-08 8:03 
GeneralRe: Why does my dialog closes when I hit 'Enter'?? Pin
Kiran Satish5-May-08 8:07
Kiran Satish5-May-08 8:07 
AnswerRe: Why does my dialog closes when I hit 'Enter'?? Pin
Joan M5-May-08 8:33
professionalJoan M5-May-08 8:33 
GeneralRe: Why does my dialog closes when I hit 'Enter'?? Pin
Kiran Satish5-May-08 9:06
Kiran Satish5-May-08 9:06 
GeneralRe: Why does my dialog closes when I hit 'Enter'?? Pin
Joan M5-May-08 9:15
professionalJoan M5-May-08 9:15 
GeneralRe: Why does my dialog closes when I hit 'Enter'?? Pin
Kiran Satish5-May-08 9:58
Kiran Satish5-May-08 9:58 
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 
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 

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.