procedure TForm1.Button2Click(Sender: TObject);<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> SendMessage(wh, WM_COMMAND, MAKEWPARAM(id, 0),0);<br> end;<br>end;