菜单得句柄,id自己用api找就行了,给你一个单击windows计算器的"帮助"->"关于"菜单的例子<br>var<br> wh,mh:thandle;<br> id:word;<br>begin<br> wh:=findwindow(nil,'计算器');<br> if wh<>0 then<br> begin<br> mh:=getmenu(wh);<br> mh:=getsubmenu(mh,2); //取得帮助菜单句柄<br> id:=getmenuitemid(mh,2); //取得关于菜单的ID<br> postmessage(wh,wm_command,MAKEWPARAM(id,0),0);<br> end;<br>end;