To build an OLE control in DUIM using the DUIM-OLE-Control library, write your application as you would write an OLE compound document server with DUIM-OLE-Server (see Section 3.4), but with the few differences summarized below.
DUIM-OLE-Control module in your control's library and module definitions.
<coclass-type-info>. If the frame just contains a DUIM <gadget>, you can let the library create type information automatically. It creates type information corresponding to the DUIM gadget protocols.
max-storage-size.
start-frame.
initialize-ole-control macro, described below.
An OLE control also differs from a compound document server in that out-of-place activation is never used, and to be actually used as a "control" element, the frame will typically contain just a single <gadget>, with no menu bar or tool bar, so that it can be active at the same time as other controls.
For more information, see the code for the DUIM OCX Scribble example, in
Examples\duim-ole\ocx-scribble\