TerMergeFields
Replace field names with field data strings.
BOOL TerMergeFields(hWnd,names,data,repaint)
HWND hWnd; | Handle of the window to be accessed |
LPBYTE names; | This argument points to a list of field names. The field names must be separated by a '|' character. The list must be NULL terminated. |
LPBYTE data; | This argument points to a list containing data strings for the corresponding field names in the 'names' argument. The data strings must be separated by a '|' character. The list must be NULL terminated. |
BOOL repaint; | Repaint the window after this operation |
Description: This function is used to replace the field names in the current editing window with the corresponding field data strings. Refer to the 'Mail/Merge Support' chapter on how to denote field names during the editing session.
If the document uses a field name which is not contained in the field name table, the editor sends a TER_MERGE message to the parent window. The 'lParam' parameter for this message contains the pointer to the field name string. If your application processes this message, it should return the pointer to the field data string.
Return Value: This function returns TRUE if successful.