<< Return to Main Index

< Return to Class Index

CGXFont::ReadProfile

BOOL ReadProfile(LPCTSTR pszSection, LPCTSTR pszEntry);

pszSection

Null-terminated string specifying the profile section.

pszEntry

Null-terminated string specifying the profile entry.

Return Value

TRUE if the entry could be found and the font successfully read. It is FALSE if the font could not be read from profile.

Remarks

Reads the font from the profile. If the entry could not be found, the font is set empty.

ReadProfile initializes the font by passing the retrieved profile string to SetDescription.

Control-Factory Specific ->

This method has been implemented using the abstraction mechanism as discussed in the chapter "Reducing the size of your application" in the user's guide. A call to the CGXStyle::ImplementProfile method from within the control factory class' InitializeApplicationComponents method will make the concrete implementation of this method available to your application.

If no concrete implementation is available this method returns FALSE. A warning will be displayed in the debug window.

END Control-Factory Specific

See Also

CGXFont::SetDescription

CGXFont

Class Overview | Class Members