Messsage Action Value
EM_UNDO Undoes the last edit 199
EM_CANPASTE Determines if the control can paste to the clipboard 1074
EM_SETMODIFY Sets or clears the control's edit flag 185
EM_FINDTEXT Finds text in a control 1080
EM_EMPTYUNDOBUFFER Resets the control's undo flag, making the control unable to undo 205
EM_CANUNDO Determines whether an edit can be undone 198
EM_LINEFROMCHAR Retrieves line number that contains the specified character offset 201
EM_GETFIRSTVISIBLELINE Determines the uppermost visible line in a control 206
EM_GETLINECOUNT Retrieves the number of lines in a multiline control 186
EM_GETLINE Retrieves a line of text from a control 196
EM_GETMODIFY Determines whether the contents of a control have been modified 184
EM_LINEFROMCHAR Retrieves the line number a specified number of characters from the beginning of the text 201
EM_LINEINDEX Retrieves the number of characters from the beginning of the text where a line starts 187
EM_LINELENGTH Returns the length of the specified line of text 193
EM_LINESCROLL Scrolls text vertically or horizontally 182
EM_SCROLLCARET Scrolls the caret into view in a control 183
EM_SETTABSTOPS Sets the tab stops in a multiline control 203
Table 2 Textbox Messages. EM stands for "Edit control Message," or messages for use with edit controls (also known as VB textboxes). This list is a representative subset of the Windows-defined messages for use with textboxes; there are many others defined. See them all using the Win 32 SDK. Most of these are located in the VB API Viewer.