Skip to content

CreateComInstance - cCJStatusBar

Called as part of the COM object creation process. Creates the COM statusbar and and all child cCJStatusbarPane COM objects

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 does the following:

  1. It creates the COM statusbar collection (cCJComStatusBar) and binds it to this object. It remains statically bound to this object.

  2. It calls the event OnCreate.

  3. It sends CreateComInstance to all child objects. This recursively builds the statusbar pane COM objects (cCJComStatusBarPane).

  4. Each newly created statusbar pane COM object will be sent the OnCreate event.

You will rarely augment or send this message.