Click to Rate and Give Feedback
MSDN
MSDN Library
Visual Studio .NET
Visual C++
Reference
MFC Reference
MFC Classes
This page is specific to
Microsoft Visual Studio 2003/.NET Framework 1.1

Other versions are also available for the following:
MFC Library Reference
COleControlSite Class

class COleControlSite : public CCmdTarget

Remarks

The COleControlSite class provides support for custom client-side control interfaces. 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

  1. Derive a class from COleControlSite.
  2. In your CWnd-derived class for the container (for instance, your dialog box) override the CWnd::CreateControlSite function.

Requirements

Header: afxocc.h

See Also

Class Members | Base Class | Hierarchy Chart | COleControlContainer

© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement | Site Feedback
Page view tracker