TE Edit Control Win32 / Win64 Help
Product page

TerGetLastMessage

Get the last message.

int TerGetLastMessage(TerMessage, DebugMessage);
LPBYTE TerMessage;Returns the default user message text in English
LPBYTE DebugMsg;Returns any debug message associated with the last message. The debug message need not be displayed to the user.

Return Value: This function returns the last message generated by the editor. This value is valid only if saving of the messages is enabled by setting the TFLAG_RETURN_MSG_ID flag. This flag is set using the TerSetFlags function.

The message string constants (MSG_) are defined in the TER.H file. The description for the message ids can be found in the TER_MSG.H file.