Hi All,

I would like to alter a section of the desktop and have this alteration be permanent. I tried using the SetPixel(V) API's, but these are only temporary alterations. When a window covers this area of the desktop and then removed the alteration is gone.

Thanks for your time and consideration,

Posted on 2005-05-20 06:13:15 by Darrel
You can try placing a window on the desktop and setting its Z order to the bottom.
Posted on 2005-05-20 08:51:23 by hutch--
Or look up on Active Desktop (eek) :)
Posted on 2005-05-20 11:02:28 by f0dder

I'm trying to avoid creating a window. One can hope.

Can GetDIBits and SetDIBits be used to do this?

Which window is the background drawn on?? ?SysListView32?  SHELLDLL_DefView?  Progman?  #32769?
Posted on 2005-05-20 16:04:21 by Darrel
I belive it's "Program Manager" class name "Progman".  If you hide that window your icons dissapear.  Perhaps I'm wrong though.

Posted on 2005-05-20 18:58:49 by Sparafusile
I hid SysListView32, which removed the icons. Then I hid SHELLDLL_DefView, could not discern any change. Then I hid Progman, still no change. Tried to hide #32769 unsuccessfully.  :lol:

Could not detect a bitmap on any of these windows.  :roll:

Will keep experimenting.  8)
Posted on 2005-05-21 05:18:53 by Darrel
I don't think you'll find a bitmap anywhere in the desktop listview. There's a special API to paint the desktop image.
Posted on 2005-05-22 22:08:02 by QvasiModo
I'm not sure, but I believe a PatternBrush is probably used. The question then becomes where the brush handle is located, so If I switch it, I can supply the appropriate brush handle to the system.
Posted on 2005-05-22 22:21:28 by Darrel

I'm not sure, but I believe a PatternBrush is probably used.

Wouldn't work on Win 95 I think...
Posted on 2005-05-22 22:25:13 by QvasiModo
You are correct. Win95 has a size limit on brushes.

I think I read that somewhere.
Posted on 2005-05-22 22:27:22 by Darrel
You could always use an overlay with DirectDraw. Then you set the desktop to the overlay colour and whatever you draw on the overlay ends up there. It's how winamp can put it's visualisations to the desktop.
Posted on 2005-05-23 20:39:13 by stormix