我创建了一个库,允许您使用user32.dll
移动桌面图标后面的任何窗口,但问题是窗口对点击或按键没有反应(甚至KeyboardDevice似乎没有抓住任何东西)'
有一点需要注意的是,在我在壁纸图层上运行任何窗口后,它会从任务栏中消失。
这是代码:
public static void MoveBehindIcons(IntPtr windowHandle)
{
IntPtr window = W32.FindWindow("Progman", (string) null);
IntPtr result = IntPtr.Zero;
int num1 = 1324;
IntPtr wParam = new IntPtr(0);
IntPtr zero = IntPtr.Zero;
int num2 = 0;
int num3 = 1000;
W32.SendMessageTimeout(window, (uint) num1, wParam, zero, (W32.SendMessageTimeoutFlags) num2, (uint) num3, out result);
IntPtr workerw = IntPtr.Zero;
W32.EnumWindows((W32.EnumWindowsProc) ((tophandle, topparamhandle) =>
{
if (W32.FindWindowEx(tophandle, IntPtr.Zero, "SHELLDLL_DefView", IntPtr.Zero) != IntPtr.Zero)
workerw = W32.FindWindowEx(IntPtr.Zero, tophandle, "WorkerW", IntPtr.Zero);
return true;
}), IntPtr.Zero);
W32.SetParent(windowHandle, workerw);
}
W32课程: https://pastebin.com/Tw72Lbw6
WallpaperEngine可以某种方式做到这一点..
是否可以使其有效?