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. Move / Refresh Windows Taskbar

Move / Refresh Windows Taskbar

Scheduled Pinned Locked Moved C / C++ / MFC
question
2 Posts 1 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.
  • U Offline
    U Offline
    u6ik
    wrote on last edited by
    #1

    I have written some code to change the screen resolution and depth then return them to their original settings. All works fine, but the Windows taskbar moves occasionally to about midscreen. Is there a function which automatically refreshes the taskbar to the bottom of any reresed window? Or a windows function I can use to move the taskbar to the required bottom edge of the visible screen? Many thanks ;) u6ik -- modified at 7:43 Monday 16th January, 2006

    U 1 Reply Last reply
    0
    • U u6ik

      I have written some code to change the screen resolution and depth then return them to their original settings. All works fine, but the Windows taskbar moves occasionally to about midscreen. Is there a function which automatically refreshes the taskbar to the bottom of any reresed window? Or a windows function I can use to move the taskbar to the required bottom edge of the visible screen? Many thanks ;) u6ik -- modified at 7:43 Monday 16th January, 2006

      U Offline
      U Offline
      u6ik
      wrote on last edited by
      #2

      Well, after a bit of digging I found the answer myself. SHChangeNotify(SHCNE_ASSOCCHANGED, SHCNF_IDLIST, NULL, NULL); You need to notify the shell of a change and force a refresh. No need to move the taskbar around yourself, Windows realises there has been a change and corrects the taskbar positioning. All good :-D u6ik

      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