Object Linking and Embedding (OLE) : Using OLE custom controls (OCXs)

Using OLE custom controls (OCXs)
An OLE custom control (OCX) is an embedded OLE object that is activated in place. Unlike OLE objects, however, OCXs are manipulated programmatically by their containers through standard OLE automation protocols. OCXs are most often implemented as DLLs, which are directly loaded into the address space of their container.
An OCX:
Essentially, an OCX is an in-place-activated OLE object. On the other hand, an OCX container is a standard OLE container that supports visual editing.
An OCX container:
Note:
Some OCXs may not have a user interface component; it is not a requirement.
The steps to create an OLE container that contains OCXs are:
1.
2.
Implement methods to create OleControl widgets and the OCX objects that are to appear within their borders.
3.
4.
5.