TE Edit Control Win32 / Win64 Help
Product page

CloseTer

Close a TER Window:

BOOL CloseTer(hWnd,ForcedClose)
HWNDhWnd;The handle to the window to be closed
BOOL ForcedClose;Set to TRUE to save the modifications and close the window unconditionally. Set to FALSE if the user verification is desired to close the window. The user verification is sought only if the text was modified.

Description: This function can be used by your application to close a TER window. You can also allow the user to close the window by using a menu option.

Before a TER window is actually closed, TER sends the TER_CLOSE message (see Message Communication) to your application window. The wParam variable for the message contains the handle of the window being closed (see DEMO.C). When your application receives this message, it can use the GetTerBuffer function to retrieve the updated text buffer.

Return Value: This function returns a TRUE value if the window is closed, otherwise it returns a FALSE value.

Comments: This function is not available as an ActiveX control method. It must be used as a DLL function.