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. Windows Forms
  4. Drawing on Desktop

Drawing on Desktop

Scheduled Pinned Locked Moved Windows Forms
winformsgraphicsquestion
4 Posts 2 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.
  • J Offline
    J Offline
    jamie550
    wrote on last edited by
    #1

    How would one draw something onto the desktop (preferably just by using a Windows Forms control), so that it stays even when somebody presses Windows key + D? Would I have to install a hook to intercept desktop paint messages, and draw using a window pointer that I had previously retrieved of the desktop's listview? Or is there a way to make a window always stay visible, even after the command Show Desktop? Why doesn't the window progman and its children disappear when Show Desktop is called? Is it because they are a special exception or because there is a list somewhere of windows not to hide when show desktop is called?

    G 1 Reply Last reply
    0
    • J jamie550

      How would one draw something onto the desktop (preferably just by using a Windows Forms control), so that it stays even when somebody presses Windows key + D? Would I have to install a hook to intercept desktop paint messages, and draw using a window pointer that I had previously retrieved of the desktop's listview? Or is there a way to make a window always stay visible, even after the command Show Desktop? Why doesn't the window progman and its children disappear when Show Desktop is called? Is it because they are a special exception or because there is a list somewhere of windows not to hide when show desktop is called?

      G Offline
      G Offline
      Giorgi Dalakishvili
      wrote on last edited by
      #2

      This article shows how to draw on desktop: Draw with Mouse[^]

      Giorgi Dalakishvili #region signature my articles #endregion

      J 1 Reply Last reply
      0
      • G Giorgi Dalakishvili

        This article shows how to draw on desktop: Draw with Mouse[^]

        Giorgi Dalakishvili #region signature my articles #endregion

        J Offline
        J Offline
        jamie550
        wrote on last edited by
        #3

        Unfortunately, the drawing disappears with any sort of screen refresh, when it should stay. Do you think the idea in my original post is feasible? An infinite loop could be used, but that would be a waste of processor.

        G 1 Reply Last reply
        0
        • J jamie550

          Unfortunately, the drawing disappears with any sort of screen refresh, when it should stay. Do you think the idea in my original post is feasible? An infinite loop could be used, but that would be a waste of processor.

          G Offline
          G Offline
          Giorgi Dalakishvili
          wrote on last edited by
          #4

          Unfortunately I'm not aware of any solutions to your problem.

          Giorgi Dalakishvili #region signature my articles #endregion

          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