CreateComInstance - cCJTabControlItem
Called as part of the COM object creation process. Creates the COM tab-item control for this object and all child cCJMenuItem COM objects
Type: Procedure
Parameters
| Parameter | Type | Description |
|---|---|---|
| hoTabToolBar | Handle | COM pointer of the parent cCJTabToolbar object |
Syntax
Procedure CreateComInstance Handle hoTabToolBar
Call Example
Send CreateComInstance hoTabToolBar
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) including cCJTabToolbar objects. When the cCJTabToolbar receives this message it sends the same message it to all of its child cCJTabControlItem objects.
When this message is received, it does the following:
-
It creates the COM tab-item control and binds it to this object. It remains statically bound to this object.
-
It calls the event OnCreate.
-
It sends CreateComInstance to all child objects. This recursively builds the all of the child menu-item (cCJMenuItem) COM objects for each tab-item.
You will rarely augment or send this message.