TerSetParamRect
Set the rectangle parameter for a subsequent function call.
BOOL TerSetParamRect(hWnd, left, right, top, bottom)
HWND hWnd; | Handle of the window to be accessed |
int left; | The left coordinate value for the rectangle. |
int right; | The right coordinate value for the rectangle. |
int top; | The top coordinate value for the rectangle. |
int bottom; | The top coordinate value for the rectangle. |
Comment: Certain functions such TerPrintPreview require you to pass a pointer to the rectangle. If you programming language does not allow passing a rectangle pointer, then you can use this function to set the rectangle before hand. Then call the intended function using the null value for the rectangle parameter. The function would then use the value that you passed using the TerSetParamRect function.
Return Value: This function returns TRUE when successful, otherwise it returns FALSE.
TerSetUserField
Set the text for the user field at the current cursor position.
BOOL TerSetUserField(hWnd, text)
HWND hWnd; | The handle of the window to be accessed |
LPBYTE text; | The text for the user field. |
Description: The editor fires an event called SetUserField when it encounters a user-field in the document as the page is being rendered. Your application can specify the content of the user field by using the TerSetUserField function within this event.
The text length of the user field should not exceed one text line. When the user-field is placed in a header/footer area, the text length of the field should not change from one call to another.
Return Value: This function returns TRUE when successful.