Chapter 16: Text-Based Controls Visual C++ and MFC Fundamentals
- Design the dialog box as follows:
Control ID Caption Other Properties
Dialog Box IDD_DLG_ACCOUNT Employee Account Setup
Static Text &Full Name
Edit Box IDC_FULL_NAME Read-Only = True
Static Text &Suggested Username:
Edit Box IDC_USERNAME Lowercase = True
Static Text &Password
Edit Box IDC_PASSWORD Password = True
Static Text &Confirm Password
Edit Box IDC_CONF_PASSWORD Password = True
Button IDC_BTN_VALIDATE &Validate
- Create a class for the dialog box and name it CAccountDlg