3
38152977
Unregistered / Unconfirmed
GUEST, unregistred user!
看了appendMenu()涵数,发现只需要句柄就可加菜单,按道理应该可以加到控件上的。可是我无法实现显示出来。
var
Hm:HMENU;
begin
hm:= windows.CreateMenu;
appendMenu(hm,mf_string,1,'&开始');
appendMenu(hm,mf_string,2,'&结束');
appendMenu(hm,mf_string,3,'&大在');
windows.SetMenu(self.toolbar1.handle ,hm);
var
Hm:HMENU;
begin
hm:= windows.CreateMenu;
appendMenu(hm,mf_string,1,'&开始');
appendMenu(hm,mf_string,2,'&结束');
appendMenu(hm,mf_string,3,'&大在');
windows.SetMenu(self.toolbar1.handle ,hm);