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. Toolbars

Toolbars

Scheduled Pinned Locked Moved C / C++ / MFC
questionhelp
4 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.
  • B Offline
    B Offline
    boon kian
    wrote on last edited by
    #1

    Hi I have a simple problem regarding toolbars here. When we create a new SDI project, the codes for the standard toolbar is there. The toolbar will appear and disappear gracefully when we check the function inside the menu. But when i add a new toolbar, how do i make it appear and disappear gracefully ?? I try to use the "ShowWindow(SW_HIDE)" but the ugly gray patch is still there! Thanx you for ur kind attention !! bk

    R 1 Reply Last reply
    0
    • B boon kian

      Hi I have a simple problem regarding toolbars here. When we create a new SDI project, the codes for the standard toolbar is there. The toolbar will appear and disappear gracefully when we check the function inside the menu. But when i add a new toolbar, how do i make it appear and disappear gracefully ?? I try to use the "ShowWindow(SW_HIDE)" but the ugly gray patch is still there! Thanx you for ur kind attention !! bk

      R Offline
      R Offline
      ROK_RShadow
      wrote on last edited by
      #2

      not sure what you are you are describing but the code below seems to work for me. m_wndMyToolBarName.ShowWindow(SW_HIDE); RecalcLayout();

      B 1 Reply Last reply
      0
      • R ROK_RShadow

        not sure what you are you are describing but the code below seems to work for me. m_wndMyToolBarName.ShowWindow(SW_HIDE); RecalcLayout();

        B Offline
        B Offline
        boon kian
        wrote on last edited by
        #3

        Hi ROK Really thanx a lot !! Meanwhile i also found another method using ShowControlBar(&m_WndToolBar, true, false); bk

        R 1 Reply Last reply
        0
        • B boon kian

          Hi ROK Really thanx a lot !! Meanwhile i also found another method using ShowControlBar(&m_WndToolBar, true, false); bk

          R Offline
          R Offline
          ROK_RShadow
          wrote on last edited by
          #4

          Thanks bk.. Never really had to hide a toolbar in an app before.. so my previous post was the first thing I came up with that worked.. thnks for posting the correct way.

          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