COleControl

This 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: H/PC 2.0, H/PC Pro
Windows CE 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.

In MFC for Windows CE, unlike MFC for the Windows-based desktop platforms, you must override the OnProperties method.

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

AmbientLocaleID OnEdit
DrawMetafile OnGetInPlaceMenu
GetWindowlessDropTarget OnHideToolBars
Load OnInactiveSetCursor
OnDrawMetafile OnShowToolBars

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

See Also

COlePropertyPage, Control Classes