CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 9 of 9
  1. #1
    Join Date
    May 2002
    Posts
    1,798

    Getting rid of the toolbar options button

    The Visual Studio 2010 Wizard generated SDI/MDI with CWinAppEx has a Toolbar Options button that I wish to get rid of because I feel it unnecessarily complicates my interface. How can I get rid of this button so that the MainFrame toolbar is immutable?
    mpliam

  2. #2
    Join Date
    May 1999
    Location
    ALABAMA, USA
    Posts
    9,917

    Re: Getting rid of the toolbar options button

    What "Toolbar Options button" you are referring to? Could you please be more specific?
    There are only 10 types of people in the world:
    Those who understand binary and those who do not.

  3. #3
    GCDEF is offline Elite Member Power Poster
    Join Date
    Nov 2003
    Location
    Florida
    Posts
    12,635

    Re: Getting rid of the toolbar options button

    Open the toolbar in the resource editor and drag it off.

  4. #4
    Join Date
    May 2002
    Posts
    1,798

    Re: Getting rid of the toolbar options button

    What "Toolbar Options button" you are referring to?
    Please see below..

    Open the toolbar in the resource editor and drag it off.
    It is not visible on the toolbar resource editor in the newer CWinAppEx configuration. There is nothing to 'drag off'.
    Attached Images Attached Images  
    mpliam

  5. #5
    Join Date
    May 1999
    Location
    ALABAMA, USA
    Posts
    9,917

    Re: Getting rid of the toolbar options button

    Mike,
    Could you describe the type of the application with details? I was trying to get this button but I failed to find the right configuration. Also, what version of VS you are using?
    There are only 10 types of people in the world:
    Those who understand binary and those who do not.

  6. #6
    Join Date
    May 2002
    Posts
    1,798

    Re: Getting rid of the toolbar options button

    Visual Studio 2010 .NET Framework 4.0+ , SVPK 1
    File->New Project->MFC Application
    Accept defaults except for:
    Application Type:
    Single document
    Project style: MFC standard
    Uncheck Enable visual style switching
    User Interface Features:
    Uncheck User-defined toolbars and images
    Uncheck Personalized menu behaviour

    Next->...-> Finish

    Those choices will generate an SDI app with the Toolbar Options Button.
    The application also uses CWinAppEx and CFrameWndEx
    Attached Files Attached Files
    mpliam

  7. #7
    Join Date
    May 1999
    Location
    ALABAMA, USA
    Posts
    9,917

    Re: Getting rid of the toolbar options button

    Mike,
    I am
    not able to create application with Toolbar Options button. Are you using some of the 3rd party plug-in?

    I have tried both: your TestProj as well as following your description. I tried it in Windows XP SP3, 7 and 2003. None of the compiled projects shows this )(&^&^ button.
    There are only 10 types of people in the world:
    Those who understand binary and those who do not.

  8. #8
    GCDEF is offline Elite Member Power Poster
    Join Date
    Nov 2003
    Location
    Florida
    Posts
    12,635

    Re: Getting rid of the toolbar options button

    You think maybe this line in mainfrm.cpp has something to do with it?

    m_wndToolBar.EnableCustomizeButton(TRUE, ID_VIEW_CUSTOMIZE, strCustomize);

  9. #9
    Join Date
    May 2002
    Posts
    1,798

    Re: Getting rid of the toolbar options button

    Commenting out the line doesnt change anything.
    mpliam

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured