EPNRTFOPTIONS

typedef struct tag_EPNRTFOPTIONS
{
   L_UINT uStructSize; 
   L_CHAR szTitle[ MAX_STRING ]; 
   L_CHAR szSubject[ MAX_STRING ]; 
   L_CHAR szAuthor[ MAX_STRING ]; 
   L_CHAR szManager[ MAX_STRING ]; 
   L_CHAR szCompany[ MAX_STRING ]; 
   L_BOOL bFramedText; 
   L_BOOL bEnableURLDetect; 
   L_BOOL bUnderline; 
   L_BOOL bForceHyperlinkColor; 
   COLORREF rgbHyperlink; 
} EPNRTFOPTIONS, L_FAR * pEPNRTFOPTIONS;

The EPNRTFOPTIONS structure provides information about RTF document properties.

Member

Description

uStructSize

Size of this structure in bytes, for versioning. Use the sizeof() macro to calculate this value.

szTitle

Character string that contains the title of the document.

szSubject

Character string that contains the subject of the document.

szAuthor

Character string that contains the author of the document.

szManager

Character string that contains the manager of the document’s author.

szCompany

Character string that contains the company of the document’s author.

bFramedText

Flag that indicates whether to draw a frame around text. The user can drag and drop the frame to change its location. Possible values are:

 

Value

Meaning

 

TRUE

Enable drawing a frame around text.

 

FALSE

Disable drawing a frame around text.

bEnableURLDetect

Flag that indicates whether to enable URL detection in the document. Possible values are:

 

Value

Meaning

 

TRUE

Enable URL detection.

 

FALSE

Disable URL detection.

bUnderline

Flag that indicates whether to underline detected URLs in the document. Use this member only if the value of bEnableURLDetect is set to TRUE. Possible values are:

 

Value

Meaning

 

TRUE

Underline the detected URLs.

 

FALSE

Do not underline the detected URLs.

bForceHyperlinkColor

Flag that indicates whether to use a custom color for the detected URLs. Use this member only if the value of bEnableURLDetect is set to TRUE. Possible values are:

 

Value

Meaning

 

TRUE

Use a custom color for the detected URLs.

 

FALSE

Do not use a custom color for the detected URLs.

rgbHyperlink

COLORREF value that specifies the custom color to be used for the detected URLs. Use this member only if the value of bForceHyperlinkColor is set to TRUE.

Comments

This structure is used within EPNDOCUMENTOPTIONS structure.