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. how to hide taskbar

how to hide taskbar

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestion
6 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.
  • G Offline
    G Offline
    gr8coaster329
    wrote on last edited by
    #1

    how can i hide the taskbar while my program is running and then unhide it when the program closes. - Kyle

    G M 2 Replies Last reply
    0
    • G gr8coaster329

      how can i hide the taskbar while my program is running and then unhide it when the program closes. - Kyle

      G Offline
      G Offline
      Graham Bradshaw
      wrote on last edited by
      #2

      Why would you want to do this? You should *never* change a user's preferences just to suit your program.

      G 1 Reply Last reply
      0
      • G gr8coaster329

        how can i hide the taskbar while my program is running and then unhide it when the program closes. - Kyle

        M Offline
        M Offline
        mamtz
        wrote on last edited by
        #3

        Hi Kyle I didn't try it but i think it will work: 1. get the taskbar window handler: HWND wDesk=GetDesktopWindow(); HWND wTray=FindWindowEx(wDesk,NULL,"Shell_TrayWnd", ""); 2. hide it: ShowWindow(wTray,SW_HIDE); 3. show it back again: ShowWindow(wTray,SW_SHOW); Good luck Mamtz

        1 Reply Last reply
        0
        • G Graham Bradshaw

          Why would you want to do this? You should *never* change a user's preferences just to suit your program.

          G Offline
          G Offline
          gr8coaster329
          wrote on last edited by
          #4

          i want to do this because the taskbar cuts off the bottom of the window. is there a way to fit the window to the screen? - Kyle

          G 1 Reply Last reply
          0
          • G gr8coaster329

            i want to do this because the taskbar cuts off the bottom of the window. is there a way to fit the window to the screen? - Kyle

            G Offline
            G Offline
            Graham Bradshaw
            wrote on last edited by
            #5

            If you maximize the window, it will fill the screen, excluding the taskbar. Is that not what you want to do?

            G 1 Reply Last reply
            0
            • G Graham Bradshaw

              If you maximize the window, it will fill the screen, excluding the taskbar. Is that not what you want to do?

              G Offline
              G Offline
              gr8coaster329
              wrote on last edited by
              #6

              yes that is what i wanted to do thank you i will try it - Kyle

              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