0

I'm trying to make a program like a desktop calendar,finding problems when trying to place the window into desktop. I called windows API, it did put the window into desktop, and win+D won't hide the window, but still, the window remained above desktop icons, My code was like

var handle = new WindowInteropHelper(Application.Current.MainWindow).Handle;
            IntPtr hprog = FindWindowEx(
                FindWindowEx(
                    FindWindow("Progman", "Program Manager"),
                    IntPtr.Zero, "SHELLDLL_DefView", null
                ),
                IntPtr.Zero, "SysListView32", null
            );
            SetParent(handle, hprog);

Is there a way to put the window below those icons?

ChrisMM
  • 8,448
  • 13
  • 29
  • 48
  • 2
    This is too broad. The hack you're trying to use doesn't work past win7. You might want to read [this](https://www.codeproject.com/Articles/856020/Draw-Behind-Desktop-Icons-in-Windows-plus). – J... May 04 '21 at 16:05
  • How often do you need to update your window? If not too often, why don't you take the current wallpaper, enrich it with the visuals of your window and set as a new wallpaper? Of course you would have to react on the wallpaper changes done not by your app. – Mike May 05 '21 at 15:23

0 Answers0