COleControl

The COleControl class is a powerful base class for developing ActiveX controls. Derived from CWnd, this class inherits all the functionality of a Windows window object plus additional functionality specific to ActiveX, such as event firing and the ability to support methods and properties.

At a Glance

Header file: Afxctl.h
Platforms:
Versions: 2.0 and later
Complete documentation Visual C++ documentation

Remarks

MFC for Windows CE supports ActiveX and Automation. It does not support OLE documents or OLE servers. When a control is activated inside a container, the control's menus and toolbars are not merged with the container's. The container ignores any menus or toolbars the server object passes to it.

MFC for Windows CE does not support the following member functions of the COleControl class:

AmbientLocaleID

DrawMetafile

GetWindowlessDropTarget

Load

OnDrawMetafile

OnEdit

OnGetInPlaceMenu

OnHideToolBars

OnInactiveSetCursor

OnShowToolBars

In MFC for Windows CE, COleControl does not implement the IDataObject or IOleCache interfaces.

See Also

COleControl Member Functions, Control Classes, COlePropertyPage