Go to
View\ClassWizard
, Message Variables.
Click on "IDC_TEXTEDITORBOX" in the "Control IDs" section.
Click on "Add Variable" button. The "Add Member Variable" menu pops up. Enter m_text in the "Member variable name" box. Accept default "CString" in the "Variable type" box. Click "OK".