我试图寻找在Google Chrome中打开的文件,它是在FindWindowEx函数的任务栏中找到的。这就是我所做的,帮我改正错误,因为我不知道该怎么做。
bool show = true;
const int SW_HIDE = 0;
const int SW_SHOW = 5;
taskbarWnd = FindWindow("Shell_TrayWnd", null);
chromeWnd = FindWindowEx(taskbarWnd, IntPtr.Zero, "Google Chrome", null);
ShowWindow(chromeWnd, show ? SW_HIDE : SW_SHOW);
show = !show感谢您的帮助:)
发布于 2013-09-16 15:19:26
它曾经与以下组件配合使用:
FindWindowEx(hChrome, IntPtr.Zero, "Chrome_OmniboxView", IntPtr.Zero);但我不知道它还能不能用。
https://stackoverflow.com/questions/18790295
复制相似问题