Invisble toolbar button MFC

Posted on 2009-05-01
Last Modified: 2013-11-20

Is there a way to make a toolbar button invisible?

Question by:IssacJones
    1 Comment
    LVL 19

    Accepted Solution

    m_yourToolBar.GetToolBarCtrl().HideButton( ID_YOUR_BUTTON, TRUE );

    and to make it visible again:

    m_yourToolBar.GetToolBarCtrl().HideButton( ID_YOUR_BUTTON, FALSE );

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Suggested Solutions

    Title # Comments Views Activity
    Strange date stored 22 95
    Question regarding Copy/Paste 16 83
    windows 10 how make picture as desktop background 2 43
    wordappend challenge 8 42
    Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
    Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
    This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!

    794 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now