4

is it possible to render to Windows' desktop (to overwrite the wallpaper)? It wouldn´t be Windows if this was not possible, so there must be a way.

One i found out is, to call "GetDC()" with 0. But this draws on the top - so all windows are overwriten.

I just want to overwrite the background wallpaper. Is it possible to render there with DirectX (should be possible if with GDI+)?

Any suggestions? :)

Thanks R

SharpShade
  • 1,761
  • 2
  • 32
  • 45
  • It is pretty pointless, whatever you draw isn't going to last long and will be wiped out when the desktop window redraws itself. Look at the Rainmeter program source to find out how to create an always-on-the-bottom window. – Hans Passant Dec 09 '12 at 17:43
  • 1
    Possible duplicate of [Draw on Windows 10 wallpaper in C++](https://stackoverflow.com/questions/56132584/draw-on-windows-10-wallpaper-in-c) – Barnack May 17 '19 at 11:30
  • Windows 10 did not exist at the time I asked this question, so not really a duplicate. – SharpShade Jun 03 '19 at 06:34

1 Answers1

2

It was possible before, MS killed the feature in Vista, and it no longer works.

AVS2 (visualization library in Winamp) used IDirectDrawSurface7::Blt with DDBLT_COLORFILL flag to present stuff to desktop, with some setup code before that.

Source code. What it did.

Soonts
  • 20,079
  • 9
  • 57
  • 130