TE Edit Control Win32 / Win64 Help
Product page

TerEnableTracking

Enable tracking of document modification.

BOOL TerEnableTracking(hWnd, enable, name, UseDefaultClrStyle, InsStyle, InsColor, DelStyle, DelColor)
HWND hWnd;The handle of the window to be accessed
BOOL enable;Set to TRUE to enable tracking. Set to false to disable tracking.
LPBYTE name;The reviewer name. Set to "" to assume currently logged user name.
BOOL UseDefaultClrStyle;Use the default value for color and style for the deleted and inserted text. When this parameter is set to TRUE, the following color and style parameters are ignored.
DWORD InsStyle;

The style to apply to the newly inserted text. Please refer to the SetTerCharStyle function for the list of available character style.

This parameter is ignored if the UseDefaultClrStyle parameter is set to TRUE.

COLORREF InsColor;

The color to apply to the newly inserted text.

This parameter is ignored if the UseDefaultClrStyle parameter is set to TRUE.

DWORD InsStyle;

The style to apply to the deleted text. Please refer to the SetTerCharStyle function for the list of available character style.

This parameter is ignored if the UseDefaultClrStyle parameter is set to TRUE.

COLORREF InsColor;

The color to apply to the deleted text.

This parameter is ignored if the UseDefaultClrStyle parameter is set to TRUE.

Comment: The ID_TRACK_CHANGES id can also be used with the TerCommand function or the Command property to enable/disable tracking of modification.

Return Value: This function returns TRUE when successful.