Build and Run

Build and run the EditCntl application. Now, you can insert text, backspace to delete text, and you can use the mouse instead of the keyboard to select text. And since you specified ES_MULTILINE, ES_AUTOVSCROLL, and ES_AUTOHSCROLL when creating the control, the control can edit a full screen of text, then scroll and edit more.

The EditCntl application illustrates the first step required to make a simple text editor. To make a complete editor, you can add a File menu to the main window to open and save text files and to copy or retrieve text from the edit control, and add an Edit menu to the main window to copy, cut, and paste text through the clipboard. Later chapters illustrate some simple ways to incorporate these features into your application.