读书人

怎么在 popupmanu 主菜单上动态添加 I

发布时间: 2012-03-01 10:25:47 作者: rapoo

如何在 popupmanu 主菜单上动态添加 Item ?
如题

[解决办法]
BCB的HELP中本身就有Ex:
TMenuItem *NewItem = new TMenuItem(PopupMenu1); // create the new item
PopupMenu1-> Items-> Add(NewItem);// add it to the Popupmenu
NewItem-> Caption = "Menu Item " + IntToStr(3);
NewItem-> Tag = 3;
...

读书人网 >C++ Builder

热点推荐