VB6 MsoControlType的类,比如MsoControlType.msoControlButton的值指定命令栏控件的类型。 与 CommandBarControls 对象的 Add 方法一起使用。 通过 CommandBars 对象模型只能创建一组有限的控件类型:msoControlButton、msoControlEdit、msoControlDropdown、msoControlComboBox、msoControlPopup 和 msoControlActiveX。 其他控件类型可能存在于内置或加载项命令栏上,但不能通过对象模型创建。
| 名称 | 值 | Description |
|---|---|---|
| msoControlActiveX | 22 | ActiveX 控件。 |
| msoControlAutoCompleteCombo | 26 | 在用户键入时自动填充第一个匹配选项的组合框。 不能通过对象模型创建。 |
| msoControlButton | 1 | 命令按钮。 |
| msoControlButtonDropdown | 5 | 下拉按钮。 不能通过对象模型创建。 |
| msoControlButtonPopup | 12 | 弹出式按钮。 不能通过对象模型创建。 |
| msoControlComboBox | 4 | 组合框。 |
| msoControlCustom | 0 | 自定义控件。 不能通过对象模型创建。 |
| msoControlDropdown | 3 | 下拉列表。 |
| msoControlEdit | 2 | 文本框。 |
| msoControlExpandingGrid | 16 | 展开网格。 不能通过对象模型创建。 |
| msoControlGauge | 19 | 计量表控件。 不能通过对象模型创建。 |
| msoControlGenericDropdown | 8 | 一般下拉列表。 不能通过对象模型创建。 |
| msoControlGraphicCombo | 20 | 图形组合框。 不能通过对象模型创建。 |
| msoControlGraphicDropdown | 9 | 图形下拉列表。 不能通过对象模型创建。 |
| msoControlGraphicPopup | 11 | 图形弹出菜单。 不能通过对象模型创建。 |
| msoControlGrid | 18 | 网 格。 不能通过对象模型创建。 |
| msoControlLabel | 15 | 标签。 不能通过对象模型创建。 |
| msoControlLabelEx | 24 | 扩展标签。 不能通过对象模型创建。 |
| msoControlOCXDropdown | 7 | OCX 下拉列表。 不能通过对象模型创建。 |
| msoControlPane | 21 | 窗 格。 不能通过对象模型创建。 |
| msoControlPopup | 10 | 弹出窗口。 |
| msoControlSpinner | 23 | 旋转。 不能通过对象模型创建。 |
| msoControlSplitButtonMRUPopup | 14 | 最近使用过的 (MRU) 弹出框。 不能通过对象模型创建。 |
| msoControlSplitButtonPopup | 13 | 拆分按钮弹出框。 不能通过对象模型创建。 |
| msoControlSplitDropdown | 6 | 拆分下拉列表。 不能通过对象模型创建。 |
| msoControlSplitExpandingGrid | 17 | 拆分展开网格。 不能通过对象模型创建。 |
| msoControlWorkPane | 25 | 工作窗格。 不能通过对象模型创建。 |