8.5.7 Compiling and Linking

Compile and link the EditCntl application, and then start Windows and run the application. Now, you can insert and 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 edit control, the control can edit a full screen of text, then scroll and edit more.

The EditCntl application illustrates the first step required to create a simple text editor. To create 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.