MFC applications created by the MFC App templates will usually save and restore UI from the registry after the first run. To see your changes after rebuilding the application delete the saved registry data before you run it again.
The registry location is set in the InitIntance function. For example,
// Standard initialization
// If you are not using these features and wish to reduce the size
// of your final executable, you should remove from the following
// the specific initialization routines you do not need
// Change the registry key under which our settings are stored
// TODO: You should modify this string to be something appropriate
// such as the name of your company or organization
SetRegistryKey(_T("Local AppWizard-Generated Applications"));
This is what the data looks like under HKCU -
Initial toolbar -
Revised Resource -
After deleting the MFCTBButtonOrder registry key and subkeys -