1个回答
展开全部
[DllImport("user32.dll")]
public extern static int GetWindowText(IntPtr hWnd, StringBuilder lpString, int nMaxCount);
StringBuilder s = new StringBuilder(512);
int i = GetWindowText(this.Handle, s, s.Capacity); //把this.handle换成你需要的句柄
MessageBox.Show(s.ToString());
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询