Window on desktop

Hi, I'm trying to create a window that is only visible on the desktop and cannot go on top of other windows.

I put
SetWindowPos(hWnd, HWND_BOTTOM, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE);
in response to WM_SETFOCUS and WM_PAINT, and it seems to work apart that in one case: if I press Win+D to show the desktop the window disappears (I have to maximize another window and then minimize it to show it again).

So, there's a more convenient way to do what I'm doing? Or a way to catch some sort of "show desktop" message?

[italic]How beautiful, if Sorrow had not made sorrow more beautiful than Beauty itself.[/italic]

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!