怎么获取没有标题的消息框
我通过我的程序打开另外一个程序A,然后模拟这个程序A的一些操作,操作进行到一个form的时候,
在form里面弹出了一个MessageBox,没有标题,里面只有一个确定按钮
form我已经获取到了,尝试用下面的方法获取MessageBox,但是返回的句柄为0
#32770是用spy获取到的消息框的类名
[DllImport("User32.dll")]private static extern IntPtr FindWindowEx(IntPtr hwndParent, IntPtr hwndChildAfter, string lpszClass, string lpszWindow);IntPtr hwndPlus = FindWindowEx(form.Handle, IntPtr.Zero, "#32770", null);