eflorico
eflorico

Reputation: 3629

Create window on desktop layer

I want to create a window that always stays on the desktop layer - all other windows should be above it, but it should also always be visible. I'm currently calling SetWindowPos with HWND_BOTTOM when the window is Activated or Loaded. This does keep the window below other windows, but when pressing Win+D or, in newer windows versions, clicking in the bottom right corner of the screen, or choosing the desktop in Alt+Tab or Flip 3D, the window is hidden. How can I prevent this? Is there any event I could handle?

Thanks, eWolf

Upvotes: 2

Views: 1286

Answers (2)

David Heffernan
David Heffernan

Reputation: 612794

Raymond Chen answered this question just the other day: How do I make a window remain visible even when the user selects Show Desktop?

Upvotes: 1

Akash Kava
Akash Kava

Reputation: 39916

You should make Gadgets, because any type of window will always hide when we choose to select desktop except Gadgets.

Only gadgets will remain on screen and they will always stay at the desktop.

On vista, Gadget will be on the sidebar, but on 7 it will be on the desktop.

SideBar API

Upvotes: 1

Related Questions