The edit control's window class descibes a regular text edit box.
The button control's window class is registered automatically when Windows starts. The name of the class is "EDIT".
Styles
- ES_AUTOHSCROLL
- Automatically scroll the text to the right when the user types a character at the end of the line. When the user pressed ENTER, scroll the text all the way back to the left.
- ES_AUTOVSCROLL
- Automatically scroll the text back up when the user presses ENTER on the last line.
- ES_CENTER
- Center the text horizontally.
- ES_LEFT
- Left-align the text.
- ES_LOWERCASE
- Convert all the characters to lowercase as they are typed.
- ES_MULTILINE
- The edit control displays multiple lines of text. If this flag is not specified, it can only display a single line of text.
- ES_NOHIDESEL
- Do not hide the selected text in the edit control even if the control loses focus.
- ES_NUMBER
- Only allow digits to be entered into the edit control.
- ES_OEMCONVERT
- Ensure that text in the edit control can readily be converted into the OEM character set.
- ES_PASSWORD
- Display an asterisk for each character typed into the edit control. This cannot be used with ES_MULTILINE.
- ES_READONLY
- Do not allow the user to edit the text in the control.
- ES_RIGHT
- Right-align the text.
- ES_UPPERCASE
- Convert all the characters to uppercase as they are typed.
- ES_WANTRETURN
- Insert a carriage return into a multi-line edit control when the user pressed ENTER, instead of implementing the default behavior of ENTER.
Constant Definitions
Const ES_AUTOHSCROLL = &H80 Const ES_AUTOVSCROLL = &H40 Const ES_CENTER = &H1 Const ES_LEFT = &H0 Const ES_LOWERCASE = &H10 Const ES_MULTILINE = &H4 Const ES_NOHIDESEL = &H100 Const ES_NUMBER = &H2000 Const ES_OEMCONVERT = &H400 Const ES_PASSWORD = &H20 Const ES_READONLY = &H800 Const ES_RIGHT = &H2 Const ES_UPPERCASE = &H8 Const ES_WANTRETURN = &H1000
Back to the Window Class list.
Back to the Reference section.
Last Modified: October 29, 2000
This page is copyright © 2000 Paul Kuliniewicz. Copyright Information Revised October 29, 2000
Go back to the Windows API Guide home page.
E-mail: vbapi@vbapi.com Send Encrypted E-Mail
This page is at http://www.vbapi.com/ref/other/classes/edit.html