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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How to add and remove a toolbar?

How to add and remove a toolbar?

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

    Hi folks, I've written and SDI program. In this program I've created a dialogbar and added it to a rebar control in the OnCreate method in CMainFrame. I would like to have the ability to let this control appaer and disappaer with a click in the view menu but I don't know how to do this. Thanks for your help.

    K 1 Reply Last reply
    0
    • F Franken

      Hi folks, I've written and SDI program. In this program I've created a dialogbar and added it to a rebar control in the OnCreate method in CMainFrame. I would like to have the ability to let this control appaer and disappaer with a click in the view menu but I don't know how to do this. Thanks for your help.

      K Offline
      K Offline
      kakan
      wrote on last edited by
      #2

      Have you tried GetDlgItem(TOOLBAR_ID)->ShowWindow(SW_SHOW|SW_HIDE)

      F 1 Reply Last reply
      0
      • K kakan

        Have you tried GetDlgItem(TOOLBAR_ID)->ShowWindow(SW_SHOW|SW_HIDE)

        F Offline
        F Offline
        Franken
        wrote on last edited by
        #3

        yes, I've tried it and it shows and hide the dialogbar but the additional rebar control for this dialogbar is still visible.

        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