寻觅在office(确切的说是word) 的工具栏中添加控件的方法,找到了这个控件列表
2007-04-18 16:33
459 查看
需要在office2003的工具条(CommandBar)上面添加一个label和一个textbox,找了半天没找到.
在msdn里面找到了这个:
Members
这就是在office上面的控件的enum值.后面标注了是否可以创建,但可惜,大部分都不能创建(Cannot be created through the object model.).
最后还有段话:
Remarks
Used with the Add method of the CommandBarControls object. Only a limited set of the control types can be created via the CommandBars object model: msoControlButton, msoControlEdit, msoControlDropdown, msoControlComboBox, msoControlPopup, and msoControlActiveX. Other control types may exist on built-in or add-in command bars, but cannot be created via the object model.
遗憾啊遗憾啊.
注:来自ms-help://MS.VSCC.v80/MS.MSDN.v80/MS.VisualStudio.v80.chs/offio11ref/html/T_Microsoft_Office_Core_MsoControlType.htm
在msdn里面找到了这个:
Members
Member name | Description |
---|---|
msoControlActiveX | ActiveX control. |
msoControlAutoCompleteCombo | Combo box in which the first matching choice is automatically filled in as the user types. Cannot be created through the object model. |
msoControlButton | Command button. |
msoControlButtonDropdown | Drop-down button. Cannot be created through the object model. |
msoControlButtonPopup | Pop-up button. Cannot be created through the object model. |
msoControlComboBox | Combo box. |
msoControlCustom | Custom control. Cannot be created through the object model. |
msoControlDropdown | Drop-down list. |
msoControlEdit | Text box. |
msoControlExpandingGrid | Expanding grid. Cannot be created through the object model. |
msoControlGauge | Gauge control. Cannot be created through the object model. |
msoControlGenericDropdown | Generic drop-down list. Cannot be created through the object model. |
msoControlGraphicCombo | Graphic combo box. Cannot be created through the object model. |
msoControlGraphicDropdown | Graphic drop-down list. Cannot be created through the object model. |
msoControlGraphicPopup | Graphic pop-up menu. Cannot be created through the object model. |
msoControlGrid | Grid. Cannot be created through the object model. |
msoControlLabel | Label. Cannot be created through the object model. |
msoControlLabelEx | Extended label. Cannot be created through the object model. |
msoControlOCXDropdown | OCX drop-down list. Cannot be created through the object model. |
msoControlPane | Pane. Cannot be created through the object model. |
msoControlPopup | Pop-up. |
msoControlSpinner | Spinner. Cannot be created through the object model. |
msoControlSplitButtonMRUPopup | Most Recently Used (MRU) pop-up. Cannot be created through the object model. |
msoControlSplitButtonPopup | Split button pop-up. Cannot be created through the object model. |
msoControlSplitDropdown | Split drop-down list. Cannot be created through the object model. |
msoControlSplitExpandingGrid | Split expanding grid. Cannot be created through the object model. |
msoControlWorkPane | Work pane. Cannot be created through the object model. |
最后还有段话:
Remarks
Used with the Add method of the CommandBarControls object. Only a limited set of the control types can be created via the CommandBars object model: msoControlButton, msoControlEdit, msoControlDropdown, msoControlComboBox, msoControlPopup, and msoControlActiveX. Other control types may exist on built-in or add-in command bars, but cannot be created via the object model.
遗憾啊遗憾啊.
注:来自ms-help://MS.VSCC.v80/MS.MSDN.v80/MS.VisualStudio.v80.chs/offio11ref/html/T_Microsoft_Office_Core_MsoControlType.htm
相关文章推荐
- 在word文档中添加目录(包括项目符号、编号、多级列表使用方法)
- 在工具栏(ToolBar)上添加ComboBox控件,为何每次在下拉列表中选择时,都会自动的选中工具栏上的一个按钮?
- VC/MFC 工具栏上动态添加组合框等控件的方法
- VC/MFC 工具栏上动态添加组合框等控件的方法
- 【VC+MFC】在工具栏上添加ComboBox控件的方法
- VC++列表控件Report报表样式初始化及添加数据基本方法
- VC/MFC 工具栏上动态添加组合框等控件的方法
- C#向Word文档中添加内容控件的方法示例
- 日期,为下拉列表添加日期,优化,目前本人博客上最优的解决方案,之前学习的通过判断得到平年闰年,而这个是让系统自动去判断,无须if判断,代码示例
- 给Repeater控件里添加序号的5种才常见方法介绍
- extjs4.0以上添加多行工具栏的方法
- CListCtrl控件,Report风格列表中添加图片
- 添加系统图象列表到列表控件
- VC++ 列表控件的使用方法
- NTKO Office文档控件常用方法
- python 点滴记录5:python中,向列表添加元素的方法
- 如何向 ActiveX 控件添加工具栏和工具提示
- 【转】VC2008在工具栏Toolbar里添加XP风格spin box control控件
- “Microsoft Office Word 遇到问题需要关闭”的解决方法
- VC中添加web控件的方法