更新:2007 年 11 月
向工具栏控件添加一个或多个按钮。
BOOL InsertButton(
int nButton,
LPTBBUTTON lpButton );
参数
下表描述了 CCommandBar 类 的 InsertButton 方法的参数。
nButton
指定按钮的从零开始的索引。此方法将新按钮插入到此按钮的左侧。lpButton
指定一个 TBUTTON 结构的地址,该结构包含有关要插入的按钮的信息。
返回值
如果成功,则为 true;否则为 false。
备注
lpButton 指针指向 TBUTTON 结构。
要求
Windows CE 5.0 版或更高版本。
头文件:在 Afxext.h 中声明。