Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
CPictureHolder Class
Collapse the table of content
Expand the table of content

CPictureHolder Class

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

class CPictureHolder

Name

Description

CPictureHolder::CPictureHolder

Constructs a CPictureHolder object.

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.

Name

Description

CPictureHolder::m_pPict

A pointer to a picture object.

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.

Header: afxctl.h

Show:
© 2015 Microsoft