◄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 ♦