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
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
Raymond Chen answered this question just the other day: How do I make a window remain visible even when the user selects Show Desktop?
精彩评论