Compartir a través de


Edit Boxes Messages (Windows Embedded CE 6.0)

1/6/2010

The following table shows the edit box messages, with a description of the purpose of each.

Programming element Description

EM_CANUNDO

This message determines whether an edit-control operation can be undone; that is, whether the control can respond to the EM_UNDO message.

EM_CHARFROMPOS

This message retrieves the zero-based character index and zero-based line index of the character nearest the specified point in an edit control.

EM_EMPTYUNDOBUFFER

This message resets the undo flag of an edit control.

EM_FMTLINES

This message sets the inclusion flag for soft line-break characters on or off within a multiline edit control.

EM_GETFIRSTVISIBLELINE

This message determines the uppermost visible line in an edit control.

EM_GETLIMITTEXT

This message retrieves the current text limit, in characters, for an edit control.

EM_GETLINE

This message copies a line of text from an edit control and places the text in a specified buffer.

EM_GETLINECOUNT

This message retrieves the number of lines in a multiline edit control.

EM_GETMARGINS

This message retrieves the widths of the left and right margins for an edit control.

EM_GETMODIFY

This message determines whether the contents of an edit control have been modified.

EM_GETPASSWORDCHAR

This message retrieves the password character displayed in an edit control when the user enters text.

EM_GETRECT

This message retrieves the formatting rectangle of an edit control.

EM_GETSEL

This message retrieves the starting and ending character positions of the current selection in an edit control.

EM_LIMITTEXT

This message limits the amount of text the user can enter into an edit control.

EM_LINEFROMCHAR

This message retrieves the index of the line that contains the specified character index in a multiline edit control.

EM_LINEINDEX

This message retrieves the character index of a line in a multiline edit control.

EM_LINELENGTH

This message retrieves the length of a line, in characters, in an edit control.

EM_LINESCROLL

This message scrolls the text vertically or horizontally in a multiline edit control.

EM_POSFROMCHAR

This message retrieves the coordinates of the specified character in an edit control.

EM_REPLACESEL

This message replaces the current selection in an edit control with the specified text.

EM_SCROLL

This message scrolls the text vertically in a multiline edit control.

EM_SCROLLCARET

This message scrolls the caret into view in an edit control.

EM_SETLIMITTEXT

This message limits the amount of text the user can enter into an edit control.

EM_SETMARGINS

This message sets the widths of the left and right margins for an edit control.

EM_SETMODIFY

This message sets or clears the modification flag for an edit control.

EM_SETPASSWORDCHAR

This message sets or removes a password character displayed in a single-line edit control when the user types text.

EM_SETREADONLY

This message sets or removes the read-only style (ES_READONLY) of an edit control.

EM_SETRECT

This message sets the formatting rectangle of a multiline edit control.

EM_SETRECTNP

This message sets the formatting rectangle of a multiline edit control.

EM_SETSEL

This message selects a range of characters in an edit control.

EM_SETTABSTOPS

This message sets the tab stops in a multiline edit control.

EM_UNDO

This message reverses the effect of the last edit control operation.

EN_CHANGE

This message indicates that the user has taken an action that could have altered text in an edit control.

EN_ERRSPACE

This message indicates that an edit control cannot allocate enough memory to meet a specific request.

EN_HSCROLL

This message indicates that the user clicked the horizontal scroll bar of an edit control.

EN_KILLFOCUS

This message indicates that an edit control lost the keyboard focus.

EN_MAXTEXT

This message indicates that the current text insertion has exceeded the specified number of characters for the edit control.

EN_SETFOCUS

This message indicates that an edit control received the keyboard focus.

EN_UPDATE

This message indicates that an edit control is about to display altered text.

EN_VSCROLL

This message indicates that the user clicked the vertical scroll bar of an edit control.

WM_CTLCOLOREDIT

This message notifies the parent window of an edit control when the control is about to be drawn.

WM_UNDO

This message reverses the effect of the last operation on an edit control.

See Also

Reference

Edit Boxes Reference