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

Toolbars status

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestion
6 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.
  • P Offline
    P Offline
    Paolo Vernazza
    wrote on last edited by
    #1

    I cant' figure how to show hidden toolbars.... Suppose I've a floating toolbar and I close it... if it's the main toolbar, there is a default command (ID_VIEW_TOOLBAR), but if I've many toolbars I can't change (nor get) the status of the others.... I tryed using "mytoolbar.ShowWindow(SW_SHOW)", but I can't get nay result.... someone has an idea?

    A 1 Reply Last reply
    0
    • P Paolo Vernazza

      I cant' figure how to show hidden toolbars.... Suppose I've a floating toolbar and I close it... if it's the main toolbar, there is a default command (ID_VIEW_TOOLBAR), but if I've many toolbars I can't change (nor get) the status of the others.... I tryed using "mytoolbar.ShowWindow(SW_SHOW)", but I can't get nay result.... someone has an idea?

      A Offline
      A Offline
      Alexander Wiseman
      wrote on last edited by
      #2

      Take a look at the ShowControlBar global function, that should do it. Example use: ::ShowControlBar(&mytoolbar, /* true = show, false = hide */ true, /* true = delay showing/hiding it, false = show/hide is now */ false); This function call will show the toolbar mytoolbar without delay. Check MSDN for more details, though this is a pretty simple function with only three parameters. Tell me if it works! Hope that helps! Sincerely, Alexander Wiseman Est melior esse quam videri It is better to be than to seem

      P 1 Reply Last reply
      0
      • A Alexander Wiseman

        Take a look at the ShowControlBar global function, that should do it. Example use: ::ShowControlBar(&mytoolbar, /* true = show, false = hide */ true, /* true = delay showing/hiding it, false = show/hide is now */ false); This function call will show the toolbar mytoolbar without delay. Check MSDN for more details, though this is a pretty simple function with only three parameters. Tell me if it works! Hope that helps! Sincerely, Alexander Wiseman Est melior esse quam videri It is better to be than to seem

        P Offline
        P Offline
        Paolo Vernazza
        wrote on last edited by
        #3

        Thanks, Yes, it works! But now I can't find a command to GET the control status...

        A 1 Reply Last reply
        0
        • P Paolo Vernazza

          Thanks, Yes, it works! But now I can't find a command to GET the control status...

          A Offline
          A Offline
          Alexander Wiseman
          wrote on last edited by
          #4

          You mean to get whether the control is hidden or visible? Try: mytoolbar.IsWindowVisible(), that should work. Otherwise, you might try to keep a variable to track the status of the control bar. Hope that helps! Sincerely, Alexander Wiseman Est melior esse quam videri It is better to be than to seem

          P 1 Reply Last reply
          0
          • A Alexander Wiseman

            You mean to get whether the control is hidden or visible? Try: mytoolbar.IsWindowVisible(), that should work. Otherwise, you might try to keep a variable to track the status of the control bar. Hope that helps! Sincerely, Alexander Wiseman Est melior esse quam videri It is better to be than to seem

            P Offline
            P Offline
            Paolo Vernazza
            wrote on last edited by
            #5

            Yes, that's! I feel idiot... it was so obvious..... and I spent about 3-4 hours looking for such function in MSDN :) Thanks!

            A 1 Reply Last reply
            0
            • P Paolo Vernazza

              Yes, that's! I feel idiot... it was so obvious..... and I spent about 3-4 hours looking for such function in MSDN :) Thanks!

              A Offline
              A Offline
              Alexander Wiseman
              wrote on last edited by
              #6

              Spending 3-4 hours trying to find a function, sounds like me on a good day ;P Glad I could help! Sincerely, Alexander Wiseman Est melior esse quam videri It is better to be than to seem

              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