Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Can I write a program that's spinned on the desktop, just like wallpaper?

Can I write a program that's spinned on the desktop, just like wallpaper?

Scheduled Pinned Locked Moved C / C++ / MFC
question
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    code_discuss
    wrote on last edited by
    #1

    I'd like to write an app runs like the wallpaper, it lays on desktop always, just like wallpaper, but it can also get mouse/keyboard messages, it that possible?

    J N K 3 Replies Last reply
    0
    • C code_discuss

      I'd like to write an app runs like the wallpaper, it lays on desktop always, just like wallpaper, but it can also get mouse/keyboard messages, it that possible?

      J Offline
      J Offline
      John R Shaw
      wrote on last edited by
      #2

      Good question. There should be a way to do it (I do not know). I suspect that you will need to subclass the desktop window; meaning that all messages go through your app. There are articles at CP on code that does that, so they can do their customized look for the interface. Depending on what you are trying to accomplish, it could be some what more difficult than that but it is probably not.

      INTP "Program testing can be used to show the presence of bugs, but never to show their absence."Edsger Dijkstra

      1 Reply Last reply
      0
      • C code_discuss

        I'd like to write an app runs like the wallpaper, it lays on desktop always, just like wallpaper, but it can also get mouse/keyboard messages, it that possible?

        N Offline
        N Offline
        Nishad S
        wrote on last edited by
        #3

        You can create an application with z-order bottom to do so. Or another idea is create window with parent as desktop list control. I am not so sure about the fine result, but I think it should work... :) Have a try..

        - NS -

        1 Reply Last reply
        0
        • C code_discuss

          I'd like to write an app runs like the wallpaper, it lays on desktop always, just like wallpaper, but it can also get mouse/keyboard messages, it that possible?

          K Offline
          K Offline
          Kenan Aksoy
          wrote on last edited by
          #4

          yes :)) Really! GetDesktopWindow() api can be used for this purpose. Good Luck!

          dlfkgj lsdfkglfkgjlfgl jldfk fldkk jk

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups