It seems you are using the MFC Feature Pack. Go to CMainFrame::OnCreate(), you can find something like
CMFCToolBar::SetBasicCommands(lstBasicCommands);
somewhere inside.
lstBasicCommands
- This is a list containing all the menu items that will not be hidden initially. Just fill it in with the items you like.
You can also check the sample code, which can be found here: C: \ Program Files \ Microsoft Visual Studio 9.0 \ Samples \ 1033
If you do not call SetBasicCommands and do not create a list, the expand button is deleted. This frees you from increasing the list every time you add a new team.
source
share