If you make a SDI or MDI project the wizard will write the code necesary for a toolbar.Just look in the OnCreate message handler(method) of the CMainFrame class. There you can find the code for handling the status bar. It should look like:
if (!m_wndToolBar.Create(this) ||!m_wndToolBar.LoadToolBar(IDR_TOOLBAR))
{
TRACE0("Failed to create toolbar\n"

;
return -1; // fail to create
}
//m_wndStatusBar.SetPaneInfo(1, ID_SEPARATOR, SBPS_NORMAL, 195);
//m_wndStatusBar.SetPaneInfo(2, ID_SEPARATOR, SBPS_NORMAL, 145);
//m_wndStatusBar.SetPaneInfo(4, ID_SEPARATOR, SBPS_NORMAL, 45);
m_wndStatusBar.SetPaneInfo(CMyMDIFrameWnd::eMyConstant1,
ID_SEPARATOR, SBPS_NORMAL, 300);
m_wndStatusBar.SetPaneInfo(CMyIFrameWnd::eMyConstant2,
ID_SEPARATOR, SBPS_NORMAL, 200);
m_wndStatusBar.SetPaneInfo(CMyIFrameWnd::eMyConstan3,
ID_SEPARATOR, SBPS_NORMAL, 100);
// TODO: Remove this if you don't want tool tips or a resizeable toolbar
m_wndToolBar.SetBarStyle(m_wndToolBar.GetBarStyle() |CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC);
// TODO: Delete these three lines if you don't want the toolbar to
// be dockable
m_wndToolBar.EnableDocking(CBRS_ALIGN_ANY);
EnableDocking(CBRS_ALIGN_ANY);
DockControlBar(&m_wndToolBar);
-----------------------------------------------------------
m_wndToolbar and m_wndStatusBar are member of CMainFrame.
For the frame menu the coresponding code you can find in the Initinstance of your CWinApp derived class,. It should look like this:
CMainFrame* pMainFrame = new CMainFrame;
if (!pMainFrame->LoadFrame(IDR_MAINFRAME))
return FALSE;
m_pMainWnd = pMainFrame;
Hope this helps, s-)
Blessed is he who in the name of justice and good will, shepards the week through the valley of darkness...