次の方法で共有


COleControlContainer Class

Acts as a control container for ActiveX controls.

class COleControlContainer : public CCmdTarget

Members

Public Constructors

Name

Description

COleControlContainer::COleControlContainer

Constructs a COleControlContainer object.

Public Methods

Name

Description

COleControlContainer::AttachControlSite

Creates a control site, hosted by the container.

COleControlContainer::BroadcastAmbientPropertyChange

Informs all hosted controls that an ambient property has changed.

COleControlContainer::CheckDlgButton

Modifies the specified button control.

COleControlContainer::CheckRadioButton

Selects the specified radio button of a group.

COleControlContainer::CreateControl

Creates a hosted ActiveX control.

COleControlContainer::CreateOleFont

Creates an OLE font.

COleControlContainer::FindItem

Returns the custom site of the specified control.

COleControlContainer::FreezeAllEvents

Determines if the control site is accepting events.

COleControlContainer::GetAmbientProp

Retrieves the specified ambient property.

COleControlContainer::GetDlgItem

Retrieves the specified dialog control.

COleControlContainer::GetDlgItemInt

Retrieves the value of the specified dialog control.

COleControlContainer::GetDlgItemText

Retrieves the caption of the specified dialog control.

COleControlContainer::HandleSetFocus

Determines if the container handles WM_SETFOCUS messages.

COleControlContainer::HandleWindowlessMessage

Handles messages sent to a windowless control.

COleControlContainer::IsDlgButtonChecked

Determines the state of the specified button.

COleControlContainer::OnPaint

Called to repaint a portion of the container.

COleControlContainer::OnUIActivate

Called when a control is about to be in-place activated.

COleControlContainer::OnUIDeactivate

Called when a control is about to be deactivated.

COleControlContainer::ScrollChildren

Called by the framework when scroll messages are received from a child window.

COleControlContainer::SendDlgItemMessage

Sends a message to the specified control.

COleControlContainer::SetDlgItemInt

Sets the value of the specified control.

COleControlContainer::SetDlgItemText

Sets the text of the specified control.

Public Data Members

Name

Description

COleControlContainer::m_crBack

The background color of the container.

COleControlContainer::m_crFore

The foreground color of the container.

COleControlContainer::m_listSitesOrWnds

A list of the supported control sites.

COleControlContainer::m_nWindowlessControls

The number of hosted windowless controls.

COleControlContainer::m_pOleFont

A pointer to the OLE font of the custom control site.

COleControlContainer::m_pSiteCapture

Pointer to the capture control site.

COleControlContainer::m_pSiteFocus

Pointer to the control that currently has input focus.

COleControlContainer::m_pSiteUIActive

Pointer to the control that is currently in-place activated.

COleControlContainer::m_pWnd

Pointer to the window implementing the control container.

COleControlContainer::m_siteMap

The site map.

Remarks

This is done by providing support for one or more ActiveX control sites (implemented by COleControlSite). COleControlContainer fully implements the IOleInPlaceFrame and IOleContainer interfaces, allowing the contained ActiveX controls to fulfill their qualifications as in-place items.

Commonly, this class is used in conjunction with COccManager and COleControlSite to implement a custom ActiveX control container, with custom sites for one or more ActiveX controls.

Inheritance Hierarchy

CObject

CCmdTarget

COleControlContainer

Requirements

Header: afxocc.h

See Also

Reference

CCmdTarget Class

Hierarchy Chart

COleControlSite Class

COccManager Class