Retrieves the length, in characters, of a line in an edit or rich edit control. You can use this macro or send the EM_LINEINDEX message explicitly. Gets the character index of the first character of a specified line in a multiline edit or rich edit control. You can use this macro or send the EM_LINEFROMCHAR message explicitly. Gets the index of the line that contains the specified character index in a multiline edit or rich edit control. You can use this macro or send the EM_LIMITTEXT message explicitly. Limits the length of text that can be entered into an edit control. You can use this macro or send the EM_HIDEBALLOONTIP message explicitly. Hides any balloon tip associated with an edit control. You can use this macro or send the EM_GETZOOM message explicitly. Gets the current zoom ratio, which is always between 1/64 and 64. You can use this macro or send the EM_GETWORDBREAKPROC message explicitly. Retrieves the address of an edit or rich edit control's Wordwrap function. Gets the number of characters in the text of an edit control. You can use this macro or send the EM_GETSEL message explicitly. Gets the starting and ending character positions of the current selection in an edit or rich edit control. You can use this macro or send the EM_GETRECT message explicitly. Gets the formatting rectangle of an edit control. You can use this macro or send the EM_GETPASSWORDCHAR message explicitly.
#TEXT EDIT BOX PASSWORD#
Gets the password character for an edit or rich edit control. You can use this macro or send the EM_GETMODIFY message explicitly. The flag indicates whether the contents of the control have been modified. Gets the state of an edit or rich edit control's modification flag. You can use this macro or send the EM_GETLINECOUNT message explicitly. Gets the number of lines in the text of an edit control. You can use this macro or send the EM_GETLINE message explicitly. Retrieves a line of text from an edit or rich edit control. You can use this macro or send the EM_GETHANDLE message explicitly. Gets a handle to the memory currently allocated for the text of a multiline edit control. You can use this macro or send the EM_GETFIRSTVISIBLELINE message explicitly. Gets the index of the uppermost visible line in a multiline edit or rich edit control. Use this macro or send the EM_GETEXTENDEDSTYLE message explicitly. Gets the extended style for a specified edit control. Use this macro or send the EM_GETENDOFLINE message explicitly. Gets the end-of-line character for a specified edit control. You can use this macro or send the EM_GETCUEBANNER message explicitly. Gets the text that is displayed as a textual cue, or tip, in an edit control. You can use this macro or send the EM_GETCARETINDEX message explicitly. Gets the zero-based index of the position of the caret in an edit control.
You can use this macro or send the EM_FMTLINES message explicitly. A soft line break consists of two carriage returns and a line feed and is inserted at the end of a line that is broken because of wordwrapping. Sets a flag that determines whether text retrieved from a multiline edit control includes soft line-break characters. You can use this macro or send the EM_EMPTYUNDOBUFFER message explicitly. The undo flag is set whenever an operation within the edit control can be undone. Resets the undo flag of an edit or rich edit control. You can use this macro or send the EM_CANUNDO message explicitly. EditWordBreakProc is a placeholder for the application-defined function name.ĭetermines whether there are any actions in the undo queue of an edit or rich edit control. The EDITWORDBREAKPROC type defines a pointer to this callback function. A multiline edit control or a rich edit control calls an EditWordBreakProc function to break a line of text. Multiline edit controls make it easy for your application to implement most of the features of a simple word processor.Īn application-defined callback function used with the EM_SETWORDBREAKPROC message.
Single-line edit controls are useful for retrieving a single string from the user. The system automatically processes all user-initiated text operations and notifies the application when the operations are completed.Įdit controls are typically used in dialog boxes, but you can use them in the client area of a standard window as well. Overviews TopicĪn edit control is a rectangular control window typically used in a dialog box to enable the user to enter and edit text. An edit control is a rectangular control window typically used in a dialog box to permit the user to enter and edit text by typing on the keyboard. This section contains information about the programming elements used with edit controls.