msgs12.hlp (Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
EM_SETFIRSTCHAR (1.2)
Message Group  Overview                           Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
#define INCL_WINENTRYFIELDS
 
EM_SETFIRSTCHAR
mp1 = MPFROMSHORT((SHORT) ichOffset);    /* offset to first character */
mp2 = 0L;                                /* not used, must be zero    */
 
An application sends an EM_SETFIRSTCHAR message to set the character to be
displayed as the first character in an entry-field, scrolling the contents
as necessary.
 
Parameter  Description
────────────────────────────────────────────────────────────────────────────
 
ichOffset  Low word of mp1. Specifies the offset to the character to place
           at the left edge of the control.
 
Return Value
 
The return value is TRUE if the operation is successful or FALSE if an error
occurs. This message returns FALSE if the edit control does not have the
ES_AUTOSCROLL style or if it is centered or right justified.
 
See Also
 
EM_QUERYFIRSTCHAR