TE Edit Control Win32 / Win64 Help
Product page

TerAcceptChanges

Accept modified text.

int TerAcceptChanges(hWnd, all, msg, repaint)
HWND hWnd;Handle of the window to be accessed
BOOL all;Set to TRUE to accept all changes. Set to false to accept the current change.
BOOL msg;Set to true to display confirmation and completion messages.
BOOL repaint;Repaint the window after this operation

Description: This function merges the modified text to the document. The 'deleted' text is removed from the document. The 'inserted' text attribute is set to normal.

The tracking mode should be turned off to enable the use of this function.

The ID_ACCEPT_CHANGE and ID_ACCEPT_ALL_CHANGES ids can also be used with the TerCommand function or the Command property to accept modified text.

Return Value: This function returns the number of text strings accepted. It returns -1 to indicate an error condition.