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. Add extra button to window Title Bar

Add extra button to window Title Bar

Scheduled Pinned Locked Moved C / C++ / MFC
question
4 Posts 3 Posters 1 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
    Greg Rodgers
    wrote on last edited by
    #1

    I have code to minimize my dialog to the system tray. Right now when the minimize button is pressed, the dialog prompts and asks "Minimize to the System Tray?". I would like to add an extra button to the Title Bar (just to the left of the minimize button) to control sending the dialog to the system tray. I have searched CodeProject but to no avail. rodge

    RaviBeeR D 2 Replies Last reply
    0
    • G Greg Rodgers

      I have code to minimize my dialog to the system tray. Right now when the minimize button is pressed, the dialog prompts and asks "Minimize to the System Tray?". I would like to add an extra button to the Title Bar (just to the left of the minimize button) to control sending the dialog to the system tray. I have searched CodeProject but to no avail. rodge

      RaviBeeR Offline
      RaviBeeR Offline
      RaviBee
      wrote on last edited by
      #2

      These articles may help:

      • CCustomBitmapButton - MFC Bitmap Button[^]
      • A Technique to Customize the title bar of Windows[^]

      /ravi My new year's resolution: 2048 x 1536 Home | Articles | Freeware | Music ravib@ravib.com

      1 Reply Last reply
      0
      • G Greg Rodgers

        I have code to minimize my dialog to the system tray. Right now when the minimize button is pressed, the dialog prompts and asks "Minimize to the System Tray?". I would like to add an extra button to the Title Bar (just to the left of the minimize button) to control sending the dialog to the system tray. I have searched CodeProject but to no avail. rodge

        D Offline
        D Offline
        David Crow
        wrote on last edited by
        #3

        So the user will have a choice whether they want to minimize to the Taskbar or the Taskbar Notification Area (sometimes erroneously called the tray)? Is that right?


        "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

        G 1 Reply Last reply
        0
        • D David Crow

          So the user will have a choice whether they want to minimize to the Taskbar or the Taskbar Notification Area (sometimes erroneously called the tray)? Is that right?


          "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

          G Offline
          G Offline
          Greg Rodgers
          wrote on last edited by
          #4

          That's right. The way I have it set up now is that when the user clicks the minimize button, a YES/NO message box asks you if you want it minimized to the system tray. If YES it goes to the "Taskbar Notification Area", if NO it is just minimized to the taskbar. I want another button next to the minimize button that will be used to send the dialog to the "Taskbar Notification Area". rodge

          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