TerRejectChanges
Reject modified text.
int TerRejectChanges(hWnd, all, msg, repaint)
HWND hWnd; | Handle of the window to be accessed |
BOOL all; | Set to TRUE to reject all changes. Set to false to reject 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 annuls the modification to the document. The 'inserted' text is removed from the document. The 'deleted' text is reinstated in the document.
The tracking mode should be turned off to enable the use of this function.
The ID_REJECT_CHANGE and ID_REJECT_ALL_CHANGES ids can also be used with the TerCommand function or the Command property to reject modified text.
Return Value: This function returns the number of text strings rejected. It returns -1 to indicate an error condition.