TE Edit Control Win32 / Win64 Help
Product page

TerGetRtfDocInfo

Retrieve the header information about the document.

int TerGetRtfDocInfo(hWnd, type, text)
HWND hWnd;The handle of the window to be accessed
int type;Information type. Use one of the following constants:
INFO_TITLEDocument title
INFO_SUBJECTSubject
INFO_AUTHORAuthor
INFO_MANAGERManager
INFO_COMPANYCompany
INFO_OPERATOROperator
INFO_CATEGORYCategory
INFO_KEYWORDSKeywords
INFO_COMMENTComment
INFO_DOCCOMMAdditional comment
INFO_HLINKBASEHyperlink base path
LPBYTE text;(output) Information text. Set to NULL to simply retrieve the length of the information text.

Return Value: When successful, this function returns the length of the information text, otherwise it returns 0. It also returns the information text using the 'text' argument.