[求助]怎样获得菜单的句柄
我想选定某活动窗口的菜单或工具条,怎样获得它的句柄
程序怎么获得??
1、找窗口句柄
IntPtr handle = FindWindow("IEFrame", "***网――- Microsoft Internet Explorer");
if (handle.ToInt32()==0)
.....
2、找到后,再找该窗体内的控件(Button登陆)
hLogin = FindWindowEx(handle, NULL, "Button", " 登录");