110,537
社区成员
发帖
与我相关
我的任务
分享
[DllImport("user32.dll")]
private static extern int FindWindow(string className, string windowText);
[DllImport("user32.dll")]
private static extern int FindWindowEx(int hWnd1, int hWnd2, string lpsz1, string lpsz2);
private void Button_Click(object sender, RoutedEventArgs e)
{
int handle0 = FindWindow("Shell_TrayWnd", null);
int handle1 = FindWindowEx(handle0, 0, "ReBarWindow32", null);
int handle2 = FindWindowEx(handle1, 0, "MSTaskSwWClass", null);
int handle3 = FindWindowEx(handle2, 0, "SysTabControl32", null);
this.Title = ( handle0 + " " + handle1 + " " + handle2 + " " + handle3 );
}
int handle0 = FindWindow("Shell_TrayWnd", null);
int handle1 = FindWindowEx(handle0, 0, "ReBarWindow32", null);
int handle2 = FindWindowEx(handle1, 0, "ToolbarWindow32", null);
this.Title = ( handle0 + " " + handle1 + " " + handle2 );
[DllImport("user32.dll")]
private static extern int FindWindow(string className, string windowText);
[DllImport("user32.dll")]
private static extern int FindWindowEx(int hWnd1, int hWnd2, string lpsz1, string lpsz2);
private void Button_Click(object sender, RoutedEventArgs e)
{
int handle0 = FindWindow("Shell_TrayWnd", null);
int handle1 = FindWindowEx(handle0, 0, "ReBarWindow32", null);
int handle2 = FindWindowEx(handle1, 0, "MSTaskSwWClass", null);
int handle3 = FindWindowEx(handle2, 0, "ToolbarWindow32", null);
this.Title = ( handle0 + " " + handle1 + " " + handle2 + " " + handle3 );
}