Click here to Skip to main content
16,006,845 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Immediately start an action when a dialog box is showed Pin
31-May-01 22:51
suss31-May-01 22:51 
GeneralRe: Immediately start an action when a dialog box is showed Pin
Anna-Jayne Metcalfe31-May-01 23:52
Anna-Jayne Metcalfe31-May-01 23:52 
GeneralRe: Immediately start an action when a dialog box is showed Pin
1-Jun-01 0:00
suss1-Jun-01 0:00 
GeneralRe: Immediately start an action when a dialog box is showed Pin
2-Jun-01 8:20
suss2-Jun-01 8:20 
GeneralData movement between CString && string Pin
31-May-01 18:10
suss31-May-01 18:10 
GeneralRe: Data movement between CString && string Pin
hearties31-May-01 21:26
hearties31-May-01 21:26 
GeneralRe: Data movement between CString && string Pin
Miroslav Rajcic31-May-01 22:14
Miroslav Rajcic31-May-01 22:14 
GeneralDialog Help! Pin
Joseph LeBlanc31-May-01 15:05
Joseph LeBlanc31-May-01 15:05 
Hello,

I'm working on a dialog for one of my projects that allows the user to enter various program settings. Since most of the values that must be entered are numerical I have to check them to make sure they are in the right range, etc. I've created integer member variables for every edit box I have on my dialog and set the range on each, however, if the user presses backspace to clear the 0 that is automatically put in the edit box they get yelled at instantly with a very annoying "Please Enter A Number" message box. What I would like to do is change these variables to CStrings and then make sure that all values are exceptable when the user clicks the OK button of my dialog. However, when I create a handle to capture the BN_CLICKED message of the OK button, add some code and run my program, the dialog box remains when the user presses OK. The dialog box is invoked from the rest of the program in an if statement: if (MyDialog.DoModal()==IDOK) ... How can I have my dialog do all necessary value checking when the user clicks OK and still close and return IDOK to the main program? I'm new to the world of MFC and Visual C++ and I haven't had any luck finding anything like this. I really appreciate any help, thanks!

Joseph LeBlanc,
unixd0od@hotmail.com
GeneralRe: Dialog Help! Pin
Christian Graus31-May-01 15:17
protectorChristian Graus31-May-01 15:17 
GeneralRe: Dialog Help! Pin
1-Jun-01 3:39
suss1-Jun-01 3:39 
GeneralWant Easy E-mail for automated process Pin
Mark Terrano31-May-01 13:17
Mark Terrano31-May-01 13:17 
GeneralRe: Want Easy E-mail for automated process Pin
Ravi Bhavnani31-May-01 13:26
professionalRavi Bhavnani31-May-01 13:26 
GeneralWierd problem saving in GDI+ Pin
Christian Graus31-May-01 12:33
protectorChristian Graus31-May-01 12:33 
GeneralRe: Wierd problem saving in GDI+ Pin
Michael Dunn31-May-01 18:38
sitebuilderMichael Dunn31-May-01 18:38 
GeneralRe: Wierd problem saving in GDI+ Pin
Christian Graus31-May-01 19:27
protectorChristian Graus31-May-01 19:27 
GeneralInterfacing VB & C++ BSTR* v. BSTR Pin
31-May-01 11:34
suss31-May-01 11:34 
GeneralRe: Interfacing VB & C++ BSTR* v. BSTR Pin
Carlos Antollini31-May-01 11:45
Carlos Antollini31-May-01 11:45 
GeneralRe: Interfacing VB & C++ BSTR* v. BSTR Pin
[James Pullicino]1-Jun-01 3:18
[James Pullicino]1-Jun-01 3:18 
GeneralRe: Interfacing VB & C++ BSTR* v. BSTR Pin
Carlos Antollini1-Jun-01 3:47
Carlos Antollini1-Jun-01 3:47 
GeneralHandling Tab and Esc Keys Pin
ThunderBird31-May-01 9:12
ThunderBird31-May-01 9:12 
GeneralDisplay Text on Screen Pin
31-May-01 8:14
suss31-May-01 8:14 
GeneralRe: Display Text on Screen Pin
Christian Graus31-May-01 8:20
protectorChristian Graus31-May-01 8:20 
QuestionHow to start MFC Pin
31-May-01 7:16
suss31-May-01 7:16 
AnswerRe: How to start MFC Pin
Christian Graus31-May-01 8:16
protectorChristian Graus31-May-01 8:16 
GeneralRe: How to start MFC Pin
31-May-01 10:51
suss31-May-01 10:51 

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.