更新:2007 年 11 月
将菜单栏插入命令栏。
BOOL InsertMenuBar(
WORD wMenuID,
WORD wButton );
参数
下表描述了 CCommandBar 类 的 InsertMenuBar 方法的参数。
wMenuID
指定 MenuBar 的资源 ID。wButton
指定命令栏中的按钮的索引(从零开始)。
返回值
如果成功,则为 true;否则为 false。
备注
该方法将 MenuBar 放在 wButton 所指示的按钮位置。
要求
Windows CE 5.0 版或更高版本。
头文件:在 Afxext.h 中声明。