COleControlSite Class
Provides support for custom client-side control interfaces.
class COleControlSite : public CCmdTarget
Members
Public Constructors
Name |
Description |
---|---|
Constructs a COleControlSite object. |
Public Methods
Name |
Description |
---|---|
Binds the default property of the hosted control to a data source. |
|
Binds a property of the hosted control to a data source. |
|
Creates a hosted ActiveX control. |
|
Destroys the hosted control. |
|
Executes a specific verb of the hosted control. |
|
Enables data sourcing for a control site. |
|
Enables the control site. |
|
Specifies if the control site is accepting events. |
|
Retrieves the default button code for the hosted control. |
|
Retrieves the identifier of the control. |
|
Retrieves the ID of an event interface for a hosted control. |
|
Retrieves the extended styles of the control site. |
|
Retrieves a specific property of the hosted control. |
|
Retrieves the styles of the control site. |
|
Retrieves the text of the hosted control. |
|
Invoke a specific method of the hosted control. |
|
Invoke a specific method of the hosted control with a variable list of arguments. |
|
Determines if the control is the default button in the window. |
|
Checks the visible state of the control site. |
|
Modifies the current extended styles of the control site. |
|
Modifies the current styles of the control site. |
|
Changes the position of the control site. |
|
Quick activates the hosted control. |
|
Sets a property or method of the control without chance of throwing an exception. |
|
Sets the default button in the window. |
|
Retrieves the identifier of the control. |
|
Sets the focus to the control site. |
|
Sets a specific property of the hosted control. |
|
Sets a specific property of the hosted control with a variable list of arguments. |
|
Sets the position of the control site. |
|
Sets the text of the hosted control. |
|
Shows or hides the control site. |
Protected Methods
Name |
Description |
---|---|
Retrieves keyboard information and mnemonics for the hosted control. |
Public Data Members
Name |
Description |
---|---|
Determines if the hosted control is a windowless control. |
|
Contains information on keyboard handling for the control. |
|
The cookie of the control's connection point. |
|
The miscellaneous states for the hosted control. |
|
The IPropertyNotifySink cookie of the control. |
|
The styles of the hosted control. |
|
The handle of the control site. |
|
The ID of the event interface for the hosted control. |
|
The ID of the hosted control. |
|
A pointer to the IOleInPlaceActiveObject object of the hosted control. |
|
The container of the hosted control. |
|
A pointer to the IOleInPlaceObject object of the hosted control. |
|
A pointer to the IOleObjectInterface interface of the control. |
|
A pointer to the IOleInPlaceObjectWindowless interface of the control. |
|
A pointer to the window object for the hosted control. |
|
The dimensions of the control site. |
Remarks
This support is the primary means by which an embedded ActiveX control obtains information about the location and extent of its display site, its moniker, its user interface, its ambient properties, and other resources provided by its container. COleControlSite fully implements the IOleControlSite, IOleInPlaceSite, IOleClientSite, IPropertyNotifySink, IBoundObjectSite, INotifyDBEvents, IRowSetNotify interfaces. In addition, the IDispatch interface (providing support for ambient properties and event sinks) is also implemented.
To create an ActiveX control site using COleControlSite, derive a class from COleControlSite. In your CWnd-derived class for the container (for instance, your dialog box) override the CWnd::CreateControlSite function.
Inheritance Hierarchy
COleControlSite
Requirements
Header: afxocc.h