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. Refresh Desktop programatically

Refresh Desktop programatically

Scheduled Pinned Locked Moved C / C++ / MFC
tutorial
3 Posts 3 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.
  • K Offline
    K Offline
    krishnakumartm
    wrote on last edited by
    #1

    Hi, I need to refresh the desktop after hiding the elements on desktop. I am hiding the desktop content but failed to refesh desktop. if i do right click refresh or simple F5 refresh is happening but how to do this programatically. Thanks,

    ---------------------------- KRISHNA KUMAR T M

    _ K 2 Replies Last reply
    0
    • K krishnakumartm

      Hi, I need to refresh the desktop after hiding the elements on desktop. I am hiding the desktop content but failed to refesh desktop. if i do right click refresh or simple F5 refresh is happening but how to do this programatically. Thanks,

      ---------------------------- KRISHNA KUMAR T M

      _ Offline
      _ Offline
      _Superman_
      wrote on last edited by
      #2

      Did you try UpdateWindow on the desktop window handle. Take desktop window handle using GetDesktopWindow

      «_Superman_» I love work. It gives me something to do between weekends.

      1 Reply Last reply
      0
      • K krishnakumartm

        Hi, I need to refresh the desktop after hiding the elements on desktop. I am hiding the desktop content but failed to refesh desktop. if i do right click refresh or simple F5 refresh is happening but how to do this programatically. Thanks,

        ---------------------------- KRISHNA KUMAR T M

        K Offline
        K Offline
        khan
        wrote on last edited by
        #3

        I found this code in one of the forums here: SHChangeNotify(SHCNE_ASSOCCHANGED, SHCNF_IDLIST, NULL, NULL); Be sure to include "shlobj.h"

        this is this.

        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