You need to add a constant to the include file to serve as the control ID for the edit control. Add the following statement:
#define IDC_EDIT 300