Visual C++ and MFC Programming 2nd Edition

(Martin Jones) #1

Chapter 16: Text-Based Controls Visual C++ and MFC Fundamentals



  1. 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


  1. Create a class for the dialog box and name it CAccountDlg

Free download pdf