I need an input box in a UI program that is already written derived from the CWinnApp class and using MFC.
I see it is using message boxes but I don’t see any examples of input boxes….
How do I do this?
(Using Visual Studio 6.0 in C++)
Thank You.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I know it’s something that’s often required, but there isn’t a built-in input box in MFC, so you’ll have to create your own. I usually just create a simple dialog with a label and edit box (the dialog already comes with OK/Cancel buttons), then create a class, say
CInputDlg, add member variables for the label and edit box, and just call it like any other dialog: