Skip to content

CreateComInstance - cCJAction

Called as part of the COM object creation process

Type: Procedure

Syntax

Procedure CreateComInstance

Call Example

Send CreateComInstance

Description

This message is sent as part of the commandbar system activation sequence. The cCJCommandbarSystem object creates all child COM objects when it is activated. See CreateCommandBars for a description of this process. The cCJCommandbarSystem sends the message CreateComInstance to all child objects (menubars, toolbars, statusbars). These objects send the same message, CreateComInstance, to all of their child objects (menu items). When this message is received, it sends CreateComAction, which creates the COM action object.

While it is possible to instantiate objects based on the cCJAction class, it is usually treated as an abstract class. Objects are usually based on its sub-class, the cCJMenuItem class. The cCJMenuItem's CreateComInstance message first calls CreateComAction (to create the action) and then calls CreateComControl (to create the control).

You will rarely augment this message or send this message.