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_SETINSERTMODE (1.2)
Message Group  Overview                           Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
#define INCL_WINENTRYFIELDS
 
EM_SETINSERTMODE
mp1 = MPFROMSHORT(fInsertMode);    /* insert-mode flag       */
mp2 = 0L;                          /* not used, must be zero */
 
An application sends the EM_SETINSERTMODE message to set or clear the system
insert-mode state.
 
Parameter    Description
────────────────────────────────────────────────────────────────────────────
 
fInsertMode  Low word of mp1. Specifies whether to set or clear the insert
             mode. If this parameter is TRUE, insert mode is turned on; if
             it is FALSE, insert mode is turned off.
 
Return Value
 
The return value is TRUE if the previous insert mode was on or FALSE if the
previous insert mode was off.
 
Comments
 
This message changes the SV_INSERTMODE system constant to reflect the
current insert-mode state. It also sends an EN_INSERTMODETOGGLE notification
message.
 
See Also
 
EN_INSERTMODETOGGLE