CMainFrame::OnCreate() method typically contains the following code:
if( ! CExtControlBar::ProfileBarStateLoad( . . . ) )
// dock all the bars initially
DockControBar( &m_wndMenuBar, . . . );
DockControBar( &m_wndToolBar, . . . );
. . .
This code is invoked after all the bars are already created. So, the main frame window tries to load the state of all the bars and, if it was not loaded successfully, it docks all the bars initially. You can extract the code which docks all the bars initially into new method and invoke it from the
method. You can invoke this new method when you need to reset positions of all the bars.
The next step, is inserting a new property page into the Customize property sheet. You need to create new child visible dialog template resources, the create the
-based class for it using Visual Studio wizard, then replace base class name to the
class. Then you should override the
virtual method in your main frame class, copy source code from original method and insert creation code for one additional dialog page.