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?
Re: Getting rid of the toolbar options button
What "Toolbar Options button" you are referring to? Could you please be more specific?
Re: Getting rid of the toolbar options button
Open the toolbar in the resource editor and drag it off.
1 Attachment(s)
Re: Getting rid of the toolbar options button
Quote:
What "Toolbar Options button" you are referring to?
Please see below..
Quote:
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'.
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?
1 Attachment(s)
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
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.
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);
Re: Getting rid of the toolbar options button
Commenting out the line doesnt change anything.