Export (0) Print
Expand All

CFontHolder Class

Implements the stock Font property and encapsulates the functionality of a Windows font object and the IFont interface.

class CFontHolder

Name

Description

CFontHolder::CFontHolder

Constructs a CFontHolder object.

Name

Description

CFontHolder::GetDisplayString

Retrieves the string displayed in a container's property browser.

CFontHolder::GetFontDispatch

Returns the font's IDispatch interface.

CFontHolder::GetFontHandle

Returns a handle to a Windows font.

CFontHolder::InitializeFont

Initializes a CFontHolder object.

CFontHolder::QueryTextMetrics

Retrieves information for the related font.

CFontHolder::ReleaseFont

Disconnects the CFontHolder object from the IFont and IFontNotification interfaces.

CFontHolder::Select

Selects a font resource into a device context.

CFontHolder::SetFont

Connects the CFontHolder object to an IFont interface.

Name

Description

CFontHolder::m_pFont

A pointer to the CFontHolder object's IFont interface.

CFontHolder does not have a base class.

Use this class to implement custom font properties for your control. For information on creating such properties, see the article ActiveX Controls: Using Fonts.

Header: afxctl.h

Show:
© 2014 Microsoft