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. Task Bar problem

Task Bar problem

Scheduled Pinned Locked Moved C / C++ / MFC
helptutorialquestion
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.
  • D Offline
    D Offline
    dudic
    wrote on last edited by
    #1

    how to prevent my program appear in task bar?

    A P 2 Replies Last reply
    0
    • D dudic

      how to prevent my program appear in task bar?

      A Offline
      A Offline
      Anna Jayne Metcalfe
      wrote on last edited by
      #2

      Hide the main window. In MFC this will do the trick: AfxGetMainWnd()->ShowWindow(SW_HIDE) Of course, you won't be able to interact with the app while it's hidden unless you provide a means of making it visible or allowing it do display a context menu. A common convention here is do add an icon to the system tray while the app is hidden. Anna :rose: Homepage | My life in tears "Be yourself - not what others think you should be" - Marcia Graesch "Anna's just a sexy-looking lesbian tart" - A friend, trying to wind me up. It didn't work. Trouble with resource IDs? Try the Resource ID Organiser Visual C++ Add-In

      1 Reply Last reply
      0
      • D dudic

        how to prevent my program appear in task bar?

        P Offline
        P Offline
        Phil Hamer
        wrote on last edited by
        #3

        I believe you can take off the WS_EX_APPWINDOW extended style from the window.

        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