Partager via


CPictureHolder Class

Implements a Picture property, which allows the user to display a picture in your control.

class CPictureHolder

Members

Public Constructors

Name

Description

CPictureHolder::CPictureHolder

Constructs a CPictureHolder object.

Public Methods

Name

Description

CPictureHolder::CreateEmpty

Creates an empty CPictureHolder object.

CPictureHolder::CreateFromBitmap

Creates a CPictureHolder object from a bitmap.

CPictureHolder::CreateFromIcon

Creates a CPictureHolder object from an icon.

CPictureHolder::CreateFromMetafile

Creates a CPictureHolder object from a metafile.

CPictureHolder::GetDisplayString

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

CPictureHolder::GetPictureDispatch

Returns the CPictureHolder object's IDispatch interface.

CPictureHolder::GetType

Tells whether the CPictureHolder object is a bitmap, a metafile, or an icon.

CPictureHolder::Render

Renders the picture.

CPictureHolder::SetPictureDispatch

Sets the CPictureHolder object's IDispatch interface.

Public Data Members

Name

Description

CPictureHolder::m_pPict

A pointer to a picture object.

Remarks

CPictureHolder does not have a base class.

With the stock Picture property, the developer can specify a bitmap, icon, or metafile for display.

For information on creating custom picture properties, see the article MFC ActiveX Controls: Using Pictures in an ActiveX Control.

Inheritance Hierarchy

CPictureHolder

Requirements

Header: afxctl.h

See Also

Reference

Hierarchy Chart

CFontHolder Class