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. Customizing Windows Taskbar Items

Customizing Windows Taskbar Items

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

    Is it possible to customize the windows task bar (not the system tray) items so that you can change the text that appears next to the task bar icon for an application? Also could you replace the text that appears next to the icon by a bitmap. That is instead of having " MyApp.exe" appear in the windows task bar, you could have " MyApplication" or " 'A Bitmap'". There seem to be a lot of articles on the system tray, but I havent seen any on the task bar. Many thanks 3green

    P 2 Replies Last reply
    0
    • 3 3green

      Is it possible to customize the windows task bar (not the system tray) items so that you can change the text that appears next to the task bar icon for an application? Also could you replace the text that appears next to the icon by a bitmap. That is instead of having " MyApp.exe" appear in the windows task bar, you could have " MyApplication" or " 'A Bitmap'". There seem to be a lot of articles on the system tray, but I havent seen any on the task bar. Many thanks 3green

      P Offline
      P Offline
      peterchen
      wrote on last edited by
      #2

      AFAIK Windows displays the Main Window title and it's icon on the task bar. The title can be set with SetWindowText in MFC, it's taken from the resource string IDR_MAINFRAME and optionally the current document name is added. The icon is the IDR_MAINFRAME icon resource. Helped?


      "Der Geist des Kriegers ist erwacht / Ich hab die Macht" StS
      sighist | Agile Programming | doxygen

      1 Reply Last reply
      0
      • 3 3green

        Is it possible to customize the windows task bar (not the system tray) items so that you can change the text that appears next to the task bar icon for an application? Also could you replace the text that appears next to the icon by a bitmap. That is instead of having " MyApp.exe" appear in the windows task bar, you could have " MyApplication" or " 'A Bitmap'". There seem to be a lot of articles on the system tray, but I havent seen any on the task bar. Many thanks 3green

        P Offline
        P Offline
        peterchen
        wrote on last edited by
        #3

        For a dialog-based app: * Use SetWindowText of the main dialog to set the dialog's title - this text will also appear in the task bar * Design two dialog resources, one 16x16, the other 32x32, use LoadImage to load them, then use the Dialog's SetIcon to set both the small and the large icon (the small one will be displayed as the dialog's system emnu, and in the taskbar. the large one will be displayed when Alt-Tabbing between apps, as EXE icon in IE, etc.) There is no documented method (at least none I'm aware of) to show something else in the task bar than in the dialog title. However, there were one or two samples at CP showing how the Taskbar can be rearranged (it's really only a group of radio buttons) - they could have tips how you can customitze them.


        "Der Geist des Kriegers ist erwacht / Ich hab die Macht" StS
        sighist | Agile Programming | doxygen

        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