5 out of 10 rated this helpful - Rate this topic

Using Edit Controls

This section provides information and example code for implementing edit controls.

Edit controls are typically used in dialog boxes, but you can use them in the client area of a standard window as well. Single-line edit controls are useful for retrieving a single string from the user. Multiline edit controls enable you to implement most of the features of a simple word processor in your application.

The following topics are discussed.

In this section

TopicDescription

How to Create a Single Line Edit Control

This topic demonstrates how to create a dialog box that contains a single-line edit control.

How to Create a Multiline Edit Control

This topic demonstrates how to implement a simple word processor by adding a multiline edit control to the client area of a window.

 

 

 

Send comments about this topic to Microsoft

Build date: 3/6/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
Can't type

The edit control uses WM_CHAR for accepting characters, not WM_KEYDOWN etc. You must Translate() your messages or you ironically won't be able to edit the text in the edit control.