Message for text box control and its application
Ccrun finishing, such as reprint please indicate the source.
The following table lists the common notification messages for text controls:
Message Name Message description
En_change Edit the contents of the control to send the message once it has changed.
En_errspace send this message at any time as long as there is not enough memory to complete an edit operation.
En_hscroll whenever the user clicks anywhere from a horizontal scroll bar that belongs to an edit control,
The message will be sent. Note that this message is sent before the control updates the display.
En_killfocus This message is issued once the control has lost the input focus.
En_maxtext as long as the user loses the text attempts to exceed by the Em_limittext message stipulation purchase limit, or attempts to exceed by the VB maxlength attribute stipulation boundary, will send this message. Also, if you do not allow automatic horizontal scrolling, the insertion point exceeds the width of the control, or automatic scrolling is not allowed, and the insertion point exceeds the height of the connector, the message is triggered.
En_setfocus the message is sent once the control receives the input focus.
En_update/en_vscroll whenever the user clicks anywhere from a vertical scroll bar that belongs to an edit control,
The message will be sent. Note that this message is sent before the control updates the display.
The following table lists the common messages for text controls:
Message Name Message description
Em_canundo determines whether the previous edit operation can undo
Em_emptyundobuffer clears the control's undo buffer, making it impossible to undo the previous edit operation
Em_undo Undo previous Edit Action
Em_fmtlines determines whether to include soft return characters in the retrieved text string
Em_getlimittext gets the maximum length of text in an edit control
Em_getmargins gets the left and right margin of the edit control (not for NT3.) 51)
Em_getrect gets a formatting rectangle for an edit control
Em_limittext limit edit Yao piece purchase text length
Em_setlimittext limits the length of text in an edit control (not for NT3.) 51)
Em_setmargins sets the left and right margin of the edit control (not for NT3.) 51)
Em_setrect formatting rectangles for an edit control
EM_SETRECTNP is similar to Em_setrect, except that the control does not repaint at this time
Em_settabstops Set the tab spacing in an edit control
Em_charfrompos determines the character at the specified position of the edit control, which does not apply to NT3. 51)
Em_getfirstvisiblein determines the first row displayed in the edit control
Em_getline from Edit Control ... The contents of the line
Em_getlinecount determines the total number of rows for an edit control
Em_getmodify determine if the content of the edit control has changed
Em_getpasswordchar to get the password character for the edit control
Em_getsel determines the starting and ending points of a selection in an edit control
Em_linefromchar determines which line shows a particular character
Em_lineindex determines the number of the first character in the specified line
Em_linelength judge a row length
Em_linescroll scrolling Edit Control
Em_posfromchar determines the position of the specified character in the edit control, for NT3. 51)
Em_replacesel replaces the current selection in an edit control with the specified text
Em_setmodify used to set or clear a modification flag for an edit control
Em_setpasswordchar sets the password character for the specified control
Em_readonly determines whether the edit control is set to read-only
Em_setsel sets the end point of a section of a selection in an edit control